org.glassfish.grizzly.utils
Class DelayedExecutor

java.lang.Object
  extended by org.glassfish.grizzly.utils.DelayedExecutor

public class DelayedExecutor
extends Object

Author:
Alexey Stashok

Nested Class Summary
 class DelayedExecutor.DelayQueue<E>
           
static interface DelayedExecutor.Resolver<E>
           
static interface DelayedExecutor.Worker<E>
           
 
Field Summary
static long UNSET_TIMEOUT
           
 
Constructor Summary
DelayedExecutor(ExecutorService threadPool)
           
DelayedExecutor(ExecutorService threadPool, long checkInterval, TimeUnit timeunit)
           
 
Method Summary
<E> DelayedExecutor.DelayQueue<E>
createDelayQueue(DelayedExecutor.Worker<E> worker, DelayedExecutor.Resolver<E> resolver)
           
 ExecutorService getThreadPool()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSET_TIMEOUT

public static final long UNSET_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

DelayedExecutor

public DelayedExecutor(ExecutorService threadPool)

DelayedExecutor

public DelayedExecutor(ExecutorService threadPool,
                       long checkInterval,
                       TimeUnit timeunit)
Method Detail

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.