com.atlassian.event.internal
Class UnboundedEventExecutorFactory
java.lang.Object
com.atlassian.event.internal.AbstractEventExecutorFactory
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
Method Summary |
protected java.util.concurrent.BlockingQueue<java.lang.Runnable> |
getQueue()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnboundedEventExecutorFactory
public UnboundedEventExecutorFactory(EventThreadPoolConfiguration configuration,
EventThreadFactory eventThreadFactory)
UnboundedEventExecutorFactory
public UnboundedEventExecutorFactory(EventThreadPoolConfiguration configuration)
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.