public class WaitPolicy extends Object implements RejectedExecutionHandler
| Constructor and Description |
|---|
WaitPolicy(long time,
TimeUnit timeUnit,
RejectedExecutionHandler shutdownPolicy,
String schedulerName)
Constructs a WaitPolicy with timeout.
|
WaitPolicy(RejectedExecutionHandler shutdownPolicy,
String schedulerName)
Constructs a WaitPolicy which waits (almost) forever.
|
| Modifier and Type | Method and Description |
|---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor e) |
public WaitPolicy(RejectedExecutionHandler shutdownPolicy, String schedulerName)
shutdownPolicy - the policy to use when the executor is shutdown.scheduelrName - the name of the target Schedulerpublic WaitPolicy(long time,
TimeUnit timeUnit,
RejectedExecutionHandler shutdownPolicy,
String schedulerName)
time value is interpreted as
Long.MAX_VALUE.shutdownPolicy - the policy to use when the executor is shutdown.schedulerName - the name of the target Schedulerpublic void rejectedExecution(Runnable r, ThreadPoolExecutor e)
rejectedExecution in interface RejectedExecutionHandlerCopyright © 2003–2018 MuleSoft, Inc.. All rights reserved.