|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for thread-pooled event dispatchers.
SimpleEventDispatcher
,
OrderedEventDispatcher
Method Summary | |
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(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. |
Methods inherited from interface net.gleamynode.netty2.EventDispatcher |
fire, flush, getWaitingEventSize |
Method Detail |
public void start()
IllegalStateException
- if threadPoolSize
is not set.public void stop()
public boolean isStarted()
true
if this event dispatcher is started.
public int getThreadPoolSize()
public void setThreadPoolSize(int newSize)
public int getThreadPriority()
public void setThreadPriority(int newPriority)
IllegalArgumentException
- if the specified priority is not between
Thread.MIN_PRIORITY
and Thread.MAX_PRIORITY
.public String getThreadNamePrefix()
public void setThreadNamePrefix(String threadNamePrefix)
threadNamePrefix + '-' + threadId
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |