|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.util.AsyncMessageQueue
Simple message queue implementation.
Constructor Summary | |
AsyncMessageQueue()
Constructor - instantiate the queue and start the thread. |
Method Summary | |
void |
add(Message msg)
Add a new message object. |
int |
getMaxSize()
Get max size |
boolean |
isDisposed()
Check whether the message queue is active or not. |
void |
run()
Thread starting point - get message ant execute. |
void |
setMaxSize(int maxSize)
Set max size |
int |
size()
Get the number of elements in the queue. |
void |
stop()
Stop the message queue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AsyncMessageQueue()
Method Detail |
public void add(Message msg)
public int size()
public int getMaxSize()
public void setMaxSize(int maxSize)
public void run()
run
in interface java.lang.Runnable
public void stop()
public boolean isDisposed()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |