public abstract class FlowControlledNoResultProcessor extends FlowControlledNoFailureProcessor<java.lang.Object>
FlowControlledProcessor
which reduces boiler plate code when no result
is expected. Instead all logic should be done in the future returned by next()
.
To further minimize code this extends FlowControlledNoFailureProcessor
where by default
all exceptions are considered failures. If you want to handle some failures you can override
FlowControlledNoFailureProcessor.handleFailure(Throwable)
returning true
to indicate an exception as expected.
Constructor and Description |
---|
FlowControlledNoResultProcessor(int maxRunningTasks)
Construct a new processor.
|
start
public FlowControlledNoResultProcessor(int maxRunningTasks)
FlowControlledProcessor.start()
once constructed to start
processing.maxRunningTasks
- Maximum number of concurrent running tasks