org.glassfish.grizzly.utils
Class DelayedExecutor
java.lang.Object
org.glassfish.grizzly.utils.DelayedExecutor
public class DelayedExecutor
- extends Object
- Author:
- Alexey Stashok
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNSET_TIMEOUT
public static final long UNSET_TIMEOUT
- See Also:
- Constant Field Values
DelayedExecutor
public DelayedExecutor(ExecutorService threadPool)
DelayedExecutor
public DelayedExecutor(ExecutorService threadPool,
long checkInterval,
TimeUnit timeunit)
start
public void start()
stop
public void stop()
getThreadPool
public ExecutorService getThreadPool()
createDelayQueue
public <E> DelayedExecutor.DelayQueue<E> createDelayQueue(DelayedExecutor.Worker<E> worker,
DelayedExecutor.Resolver<E> resolver)
Copyright © 2012 Oracle Corporation. All Rights Reserved.