public class CallerBlocksPolicy extends Object implements RejectedExecutionHandler
RejectedExecutionHandlerthat blocks the caller until the executor has room in its queue, or a timeout occurs (in which case a
|Constructor and Description|
|Modifier and Type||Method and Description|
public CallerBlocksPolicy(long maxWait)
maxWait- The maximum time to wait for a queue slot to be available, in milliseconds.