|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.util.Queue
public class Queue
Queue (first in first out) implementation. It supports two types of queues.
Constructor Summary | |
---|---|
Queue(boolean bWait)
Constructor. |
Method Summary | |
---|---|
void |
clear()
Remove all the elements. |
Object |
get()
Try to get the first element. |
Object |
get(long waitTimeMillis)
Try to get the first element. |
int |
getMaxSize()
Get max size |
boolean |
isEmpty()
Is the list empty (size == 0) |
void |
put(Object obj)
Put an object into the queue and notify the waiting thread. |
void |
setMaxSize(int maxSize)
Set max size |
int |
size()
Get the number of elements in the queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Queue(boolean bWait)
bWait
- - thread will wait or notMethod Detail |
---|
public Object get()
public Object get(long waitTimeMillis)
public void put(Object obj)
public int size()
public int getMaxSize()
public void setMaxSize(int maxSize)
public boolean isEmpty()
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |