| Modifier and Type | Class and Description |
|---|---|
| private class | |
| public class | |
| public static interface | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private volatile boolean | |
| private final Queue | |
| private final DelayedExecutor. | |
| private final Object | |
| private final ExecutorService | |
| public static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DelayedExecutor(final ExecutorService threadPool, final long checkInterval, final TimeUnit timeunit)
|
| Modifier and Type | Method and Description |
|---|---|
| public <E> DelayedExecutor. | createDelayQueue(final DelayedExecutor.
|
| public void | |
| public ExecutorService | |
| public void | |
| public void | |
| private static boolean |
| checkIntervalMillis | back to summary |
|---|---|
| private final long checkIntervalMillis | |
| isStarted | back to summary |
|---|---|
| private volatile boolean isStarted | |
| queues | back to summary |
|---|---|
| private final Queue<DelayedExecutor. | |
| runnable | back to summary |
|---|---|
| private final DelayedExecutor. | |
| sync | back to summary |
|---|---|
| private final Object sync | |
| threadPool | back to summary |
|---|---|
| private final ExecutorService threadPool | |
| UNSET_TIMEOUT | back to summary |
|---|---|
| public static final long UNSET_TIMEOUT | |
| DelayedExecutor | back to summary |
|---|---|
| public DelayedExecutor(final ExecutorService threadPool) | |
| DelayedExecutor | back to summary |
|---|---|
| public DelayedExecutor(final ExecutorService threadPool, final long checkInterval, final TimeUnit timeunit) | |
| createDelayQueue | back to summary |
|---|---|
| public <E> DelayedExecutor. | |
| destroy | back to summary |
|---|---|
| public void destroy() | |
| getThreadPool | back to summary |
|---|---|
public ExecutorService getThreadPool()
| |
| start | back to summary |
|---|---|
| public void start() | |
| stop | back to summary |
|---|---|
| public void stop() | |
| wasModified | back to summary |
|---|---|
| private static boolean wasModified(final long l1, final long l2) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| DelayedRunnable | back to summary |
|---|---|
| private DelayedRunnable() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ConcurrentMap | |
| pack-priv final DelayedExecutor. | |
| pack-priv final DelayedExecutor. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void |
| queue | back to summary |
|---|---|
| pack-priv final ConcurrentMap<E, DelayedExecutor. | |
| resolver | back to summary |
|---|---|
| pack-priv final DelayedExecutor. | |
| worker | back to summary |
|---|---|
| pack-priv final DelayedExecutor. | |
| DelayQueue | back to summary |
|---|---|
| public DelayQueue(final DelayedExecutor. | |
| add | back to summary |
|---|---|
| public void add(final E elem, final long delay, final TimeUnit timeUnit) | |
| destroy | back to summary |
|---|---|
| public void destroy() | |
| remove | back to summary |
|---|---|
| public void remove(final E elem) | |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public boolean | |
| public void |
| getTimeoutMillis | back to summary |
|---|---|
| public long getTimeoutMillis(E element) | |
| removeTimeout | back to summary |
|---|---|
| public boolean removeTimeout(E element) | |
| setTimeoutMillis | back to summary |
|---|---|
| public void setTimeoutMillis(E element, long timeoutMillis) | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true, if the work is done and element has to be removed from the delay queue, or false if the element should be re-registered on the delay queue againelement to operate upon. element)The method is executed by DelayExecutor once element's timeout expires. |
| doWork | back to summary |
|---|---|
| public boolean doWork(E element) The method is executed by DelayExecutor once element's timeout expires.
| |