public class WaitPolicy extends Object implements RejectedExecutionHandler
| Constructor and Description |
|---|
WaitPolicy()
Constructs a WaitPolicy which waits (almost) forever.
|
WaitPolicy(long time,
TimeUnit timeUnit)
Constructs a WaitPolicy with timeout.
|
public WaitPolicy()
public WaitPolicy(long time,
TimeUnit timeUnit)
time
value is interpreted as Long.MAX_VALUE.public void rejectedExecution(Runnable r, ThreadPoolExecutor e)
rejectedExecution in interface RejectedExecutionHandlerCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.