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 RejectedExecutionHandler
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.