com.atlassian.event
Class AsyncEventManager
java.lang.Object
com.atlassian.event.DefaultEventManager
com.atlassian.event.AsyncEventManager
- All Implemented Interfaces:
- EventManager, java.util.EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
public class AsyncEventManager
- extends DefaultEventManager
A basica EventManager that executes the EventListener.handleEvent(Event) asynchronously (in a thread
pool)
|
Constructor Summary |
AsyncEventManager()
Uses a ThreadPoolExecutor a thread pool with various defaults |
AsyncEventManager(int corePoolSize,
int maximumPoolSize,
long keepAliveSeconds,
java.util.concurrent.ThreadFactory threadFactory)
Allows for users to tweak the ThreadPoolExecutor |
AsyncEventManager(java.util.concurrent.ThreadFactory threadFactory)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncEventManager
public AsyncEventManager(int corePoolSize,
int maximumPoolSize,
long keepAliveSeconds,
java.util.concurrent.ThreadFactory threadFactory)
- Allows for users to tweak the
ThreadPoolExecutor
- Parameters:
corePoolSize - - minimum threadsmaximumPoolSize - - maximum threadskeepAliveSeconds - - how long to keep threads > min threads alive forthreadFactory -
AsyncEventManager
public AsyncEventManager()
- Uses a
ThreadPoolExecutor a thread pool with various defaults
AsyncEventManager
public AsyncEventManager(java.util.concurrent.ThreadFactory threadFactory)
getExecutorService
public java.util.concurrent.ExecutorService getExecutorService()
Copyright © 2006-2009 Atlassian. All Rights Reserved.