Class FlowControlledNoResultProcessor
- java.lang.Object
-
- org.threadly.concurrent.processing.FlowControlledProcessor<T>
-
- org.threadly.concurrent.processing.FlowControlledNoFailureProcessor<java.lang.Object>
-
- org.threadly.concurrent.processing.FlowControlledNoResultProcessor
-
public abstract class FlowControlledNoResultProcessor extends FlowControlledNoFailureProcessor<java.lang.Object>
Implementation ofFlowControlledProcessor
which reduces boiler plate code when no result is expected. Instead all logic should be done in the future returned bynext()
.To further minimize code this extends
FlowControlledNoFailureProcessor
where by default all exceptions are considered failures. If you want to handle some failures you can overrideFlowControlledNoFailureProcessor.handleFailure(Throwable)
returningtrue
to indicate an exception as expected.- Since:
- 5.37
-
-
Constructor Summary
Constructors Constructor Description FlowControlledNoResultProcessor(int maxRunningTasks)
Construct a new processor.
-
Method Summary
-
Methods inherited from class org.threadly.concurrent.processing.FlowControlledProcessor
start
-
-
-
-
Constructor Detail
-
FlowControlledNoResultProcessor
public FlowControlledNoResultProcessor(int maxRunningTasks)
Construct a new processor. You must invokeFlowControlledProcessor.start()
once constructed to start processing.- Parameters:
maxRunningTasks
- Maximum number of concurrent running tasks
-
-