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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor e) |
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–2017 MuleSoft, Inc.. All rights reserved.