/** Sets the {@link EmptyMatchTreatment}. */ public MatchConfiguration withEmptyMatchTreatment(EmptyMatchTreatment treatment) { return toBuilder().setEmptyMatchTreatment(treatment).build(); }
/** * Continuously watches for new files at the given interval until the given termination * condition is reached, where the input to the condition is the filepattern. */ public MatchConfiguration continuously( Duration interval, TerminationCondition<String, ?> condition) { return toBuilder().setWatchInterval(interval).setWatchTerminationCondition(condition).build(); }