com.atlassian.event.internal
Class DirectEventExecutorFactory

java.lang.Object
  extended by com.atlassian.event.internal.AbstractEventExecutorFactory
      extended by com.atlassian.event.internal.DirectEventExecutorFactory
All Implemented Interfaces:
EventExecutorFactory
Direct Known Subclasses:
EventExecutorFactoryImpl

public class DirectEventExecutorFactory
extends AbstractEventExecutorFactory

Uses a SynchronousQueue to hand off tasks to the Executor. An attempt to to queue a task will fail if no threads are immediately available to run it

See ThreadPoolExecutor for more information.

Since:
2.1

Constructor Summary
DirectEventExecutorFactory(EventThreadPoolConfiguration configuration)
           
DirectEventExecutorFactory(EventThreadPoolConfiguration configuration, EventThreadFactory eventThreadFactory)
           
 
Method Summary
protected  java.util.concurrent.BlockingQueue<java.lang.Runnable> getQueue()
           
 
Methods inherited from class com.atlassian.event.internal.AbstractEventExecutorFactory
getExecutor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectEventExecutorFactory

public DirectEventExecutorFactory(EventThreadPoolConfiguration configuration,
                                  EventThreadFactory eventThreadFactory)

DirectEventExecutorFactory

public DirectEventExecutorFactory(EventThreadPoolConfiguration configuration)
Method Detail

getQueue

protected java.util.concurrent.BlockingQueue<java.lang.Runnable> getQueue()
Specified by:
getQueue in class AbstractEventExecutorFactory
Returns:
a new SynchronousQueue


Copyright © 2006-2012 Atlassian. All Rights Reserved.