public class AsyncEventExecutor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AsyncEventExecutor.NamedThreadFactory
Creates non-daemon threads at normal priority.
|
Modifier and Type | Field and Description |
---|---|
static int |
QUEUE_SIZE |
Constructor and Description |
---|
AsyncEventExecutor(int poolSize,
int maxPoolSize,
int keepAliveTime,
int queueSize) |
Modifier and Type | Method and Description |
---|---|
static AsyncEventExecutor |
create() |
int |
getActiveCount() |
int |
getMaxPoolSize() |
int |
getUnfinishedCount() |
void |
run(List<EventListenerDescriptor> listeners,
EventBundle event) |
void |
setMaxPoolSize(int maxSize) |
void |
shutdown() |
void |
shutdown(long timeout) |
public static final int QUEUE_SIZE
public AsyncEventExecutor(int poolSize, int maxPoolSize, int keepAliveTime, int queueSize)
public static AsyncEventExecutor create()
public void shutdown()
public void shutdown(long timeout)
public void run(List<EventListenerDescriptor> listeners, EventBundle event)
public int getUnfinishedCount()
public int getActiveCount()
public int getMaxPoolSize()
public void setMaxPoolSize(int maxSize)
Copyright © 2011 Nuxeo SA. All Rights Reserved.