com.atlassian.event.internal
Class AbstractEventExecutorFactory

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

public abstract class AbstractEventExecutorFactory
extends java.lang.Object
implements EventExecutorFactory

A EventExecutorFactory that allows the Executor to be produced with a custom BlockingQueue

Since:
2.1

Constructor Summary
AbstractEventExecutorFactory(EventThreadPoolConfiguration configuration)
           
AbstractEventExecutorFactory(EventThreadPoolConfiguration configuration, EventThreadFactory eventThreadFactory)
           
 
Method Summary
 java.util.concurrent.Executor getExecutor()
           
protected abstract  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
 

Constructor Detail

AbstractEventExecutorFactory

public AbstractEventExecutorFactory(EventThreadPoolConfiguration configuration,
                                    EventThreadFactory eventThreadFactory)
Parameters:
configuration -
eventThreadFactory -
Since:
2.0.5

AbstractEventExecutorFactory

public AbstractEventExecutorFactory(EventThreadPoolConfiguration configuration)
Method Detail

getQueue

protected abstract java.util.concurrent.BlockingQueue<java.lang.Runnable> getQueue()
Returns:
a new BlockingQueue for the construction of a new Executor

getExecutor

public java.util.concurrent.Executor getExecutor()
Specified by:
getExecutor in interface EventExecutorFactory
Returns:
a new Executor


Copyright © 2006-2013 Atlassian. All Rights Reserved.