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 Summary
ConstructorsConstructorDescriptionCallerBlocksPolicy(long maxWait) Construct instance based on the provided maximum wait time. - 
Method Summary
Modifier and TypeMethodDescriptionvoidrejectedExecution(Runnable r, ThreadPoolExecutor executor)  
- 
Constructor Details
- 
CallerBlocksPolicy
public 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 interfaceRejectedExecutionHandler
 
 -