com.atlassian.event.internal
Class UnboundedEventExecutorFactory

java.lang.Object
  extended by com.atlassian.event.internal.AbstractEventExecutorFactory
      extended by com.atlassian.event.internal.UnboundedEventExecutorFactory
All Implemented Interfaces:
EventExecutorFactory

public class UnboundedEventExecutorFactory
extends AbstractEventExecutorFactory

Uses a LinkedBlockingQueue to hand off tasks to the Executor. Will cause new tasks to wait in the queue when all threads are busy.

See ThreadPoolExecutor for more information.

Since:
2.1

Constructor Summary
UnboundedEventExecutorFactory(EventThreadPoolConfiguration configuration)
           
UnboundedEventExecutorFactory(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

UnboundedEventExecutorFactory

public UnboundedEventExecutorFactory(EventThreadPoolConfiguration configuration,
                                     EventThreadFactory eventThreadFactory)

UnboundedEventExecutorFactory

public UnboundedEventExecutorFactory(EventThreadPoolConfiguration configuration)
Method Detail

getQueue

protected java.util.concurrent.BlockingQueue<java.lang.Runnable> getQueue()
Specified by:
getQueue in class AbstractEventExecutorFactory
Returns:
a new BlockingQueue for the construction of a new Executor


Copyright © 2006-2013 Atlassian. All Rights Reserved.