Class CallerBlocksPolicy
java.lang.Object
org.springframework.integration.util.CallerBlocksPolicy
- All Implemented Interfaces:
- RejectedExecutionHandler
A 
RejectedExecutionHandler that blocks the caller until
 the executor has room in its queue, or a timeout occurs (in which
 case a RejectedExecutionException is thrown.- Since:
- 3.0.3
- Author:
- Gary Russell, Artem Bilan
- 
Constructor SummaryConstructorsConstructorDescriptionCallerBlocksPolicy(long maxWait) Construct instance based on the provided maximum wait time.
- 
Method SummaryModifier and TypeMethodDescriptionvoidrejectedExecution(Runnable r, ThreadPoolExecutor executor) 
- 
Constructor Details- 
CallerBlocksPolicypublic CallerBlocksPolicy(long maxWait) Construct instance based on the provided maximum wait time.- Parameters:
- maxWait- The maximum time to wait for a queue slot to be available, in milliseconds.
 
 
- 
- 
Method Details- 
rejectedExecution- Specified by:
- rejectedExecutionin interface- RejectedExecutionHandler
 
 
-