public abstract static class FileIO.MatchConfiguration extends java.lang.Object implements HasDisplayData, java.io.Serializable
EmptyMatchTreatment
and
continuous watching for matching files.Constructor and Description |
---|
MatchConfiguration() |
Modifier and Type | Method and Description |
---|---|
FileIO.MatchConfiguration |
continuously(Duration interval,
Watch.Growth.TerminationCondition<java.lang.String,?> condition)
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.
|
static FileIO.MatchConfiguration |
create(EmptyMatchTreatment emptyMatchTreatment)
Creates a
FileIO.MatchConfiguration with the given EmptyMatchTreatment . |
abstract EmptyMatchTreatment |
getEmptyMatchTreatment() |
abstract @Nullable Duration |
getWatchInterval() |
void |
populateDisplayData(DisplayData.Builder builder)
Register display data for the given transform or component.
|
FileIO.MatchConfiguration |
withEmptyMatchTreatment(EmptyMatchTreatment treatment)
Sets the
EmptyMatchTreatment . |
public static FileIO.MatchConfiguration create(EmptyMatchTreatment emptyMatchTreatment)
FileIO.MatchConfiguration
with the given EmptyMatchTreatment
.public abstract EmptyMatchTreatment getEmptyMatchTreatment()
public abstract @Nullable Duration getWatchInterval()
public FileIO.MatchConfiguration withEmptyMatchTreatment(EmptyMatchTreatment treatment)
EmptyMatchTreatment
.public FileIO.MatchConfiguration continuously(Duration interval, Watch.Growth.TerminationCondition<java.lang.String,?> condition)
public void populateDisplayData(DisplayData.Builder builder)
HasDisplayData
populateDisplayData(DisplayData.Builder)
is invoked by Pipeline runners to collect
display data via DisplayData.from(HasDisplayData)
. Implementations may call super.populateDisplayData(builder)
in order to register display data in the current namespace,
but should otherwise use subcomponent.populateDisplayData(builder)
to use the namespace
of the subcomponent.
populateDisplayData
in interface HasDisplayData
builder
- The builder to populate with display data.HasDisplayData