Class ConfigurationStep<M extends Message,R,W>
- java.lang.Object
-
- com.github.dbmdz.flusswerk.framework.flow.builder.ConfigurationStep<M,R,W>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowSpec
build()
Build the new flow.ConfigurationStep<M,R,W>
cleanup(Runnable c)
Sets a cleanup task process monitor that consumes aFlowInfo
instance every time a message has been processed.ConfigurationStep<M,R,W>
metrics(Consumer<FlowInfo> m)
Sets a process metrics monitor that consumes aFlowInfo
instance every time a message has been processed.
-
-
-
Method Detail
-
metrics
public ConfigurationStep<M,R,W> metrics(Consumer<FlowInfo> m)
Sets a process metrics monitor that consumes aFlowInfo
instance every time a message has been processed. builder step.- Parameters:
m
- the process metrics monitor- Returns:
- the next step (setting configuration or build the flow)
-
cleanup
public ConfigurationStep<M,R,W> cleanup(Runnable c)
Sets a cleanup task process monitor that consumes aFlowInfo
instance every time a message has been processed. builder step.- Parameters:
c
- the cleanup task- Returns:
- the next step (setting configuration or build the flow)
-
build
public FlowSpec build()
Build the new flow.- Returns:
- the new flow
-
-