Package com.atlassian.event.internal
Class UnboundedEventExecutorFactory
java.lang.Object
com.atlassian.event.internal.AbstractEventExecutorFactory
com.atlassian.event.internal.UnboundedEventExecutorFactory
- All Implemented Interfaces:
EventExecutorFactory
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
ConstructorsConstructorDescriptionUnboundedEventExecutorFactory(EventThreadPoolConfiguration configuration) UnboundedEventExecutorFactory(EventThreadPoolConfiguration configuration, EventThreadFactory eventThreadFactory) -
Method Summary
Methods inherited from class com.atlassian.event.internal.AbstractEventExecutorFactory
getExecutor
-
Constructor Details
-
UnboundedEventExecutorFactory
public UnboundedEventExecutorFactory(EventThreadPoolConfiguration configuration, EventThreadFactory eventThreadFactory) -
UnboundedEventExecutorFactory
-
-
Method Details
-
getQueue
- Specified by:
getQueuein classAbstractEventExecutorFactory- Returns:
- a new
BlockingQueue<Runnable>for the construction of a newExecutor
-