@Deprecated public class OfferWithTimeoutPolicy extends Object implements RejectedExecutionHandler
RejectedExecutionHandler which enables waiting for a given timeout before rejecting tasks if queue is full| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
isGoingToLog
Deprecated.
This boolean makes sure we monitor the time to go through the queue not to often
|
protected static org.slf4j.Logger |
LOGGER
Deprecated.
|
protected int |
timeout
Deprecated.
|
protected TimeUnit |
unit
Deprecated.
|
| Constructor and Description |
|---|
OfferWithTimeoutPolicy(int timeout,
TimeUnit unit)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor executor)
Deprecated.
|
protected static final org.slf4j.Logger LOGGER
protected int timeout
protected TimeUnit unit
protected final AtomicBoolean isGoingToLog
public OfferWithTimeoutPolicy(int timeout,
TimeUnit unit)
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor)
rejectedExecution in interface RejectedExecutionHandlerCopyright © 2014–2017 Pivotal Software, Inc.. All rights reserved.