public interface ThreadPooledEventDispatcher extends EventDispatcher
SimpleEventDispatcher,
OrderedEventDispatcher| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getThreadNamePrefix()
Returns the prefix of dispatcher thread name.
|
int |
getThreadPoolSize()
Returns the number of dispatcher threads.
|
int |
getThreadPriority()
Returns the priority of dispatcher threads.
|
boolean |
isStarted()
Returns
true if this event dispatcher is started. |
void |
setThreadNamePrefix(java.lang.String threadNamePrefix)
Sets the prefix of dispatcher thread name.
|
void |
setThreadPoolSize(int newSize)
Sets the number of dispatcher threads.
|
void |
setThreadPriority(int newPriority)
Sets the priority of dispatcher threads.
|
void |
start()
Starts this event dispatcher.
|
void |
stop()
Stops this event dispatcher.
|
fire, flush, getWaitingEventSizevoid start()
java.lang.IllegalStateException - if threadPoolSize is not set.void stop()
boolean isStarted()
true if this event dispatcher is started.int getThreadPoolSize()
void setThreadPoolSize(int newSize)
int getThreadPriority()
void setThreadPriority(int newPriority)
java.lang.IllegalArgumentException - if the specified priority is not between
Thread.MIN_PRIORITYand Thread.MAX_PRIORITY.java.lang.String getThreadNamePrefix()
void setThreadNamePrefix(java.lang.String threadNamePrefix)
threadNamePrefix + '-' + threadId.Copyright © 2004-2012 Trustin Lee. All Rights Reserved.