|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.util.FIFOImpl
public final class FIFOImpl
Field Summary | |
---|---|
static int |
MAXIMUM_NUMBER_OF_ACCEPTOR_REFERENCES
|
Fields inherited from interface org.echarts.util.FIFO |
---|
serialVersionUID |
Constructor Summary | |
---|---|
FIFOImpl()
|
Method Summary | |
---|---|
int |
addAcceptor(FIFOAcceptor acceptor)
Adds specified acceptor to this FIFO if not already added, otherwise increments acceptor's reference count. |
void |
clear()
Clears queue. |
java.lang.Object |
get()
Wait for an element to arrive in FIFO. |
java.lang.Object |
get(long delay)
Wait for a specified number of milliseconds for an element to arrive in the FIFO. |
java.lang.Object |
getNoBlock()
Get element from queue if one exists without blocking. |
java.util.LinkedList |
getQueueContents()
Returns a vector consisting of the current contents of the queue. |
FIFO |
getRemote()
|
boolean |
hasAcceptorReference(FIFOAcceptor acceptor)
Returns true if this FIFO references the specified acceptor. |
boolean |
hasAcceptorReferences()
Returns true if this FIFO references any acceptors. |
boolean |
isEmpty()
Returns true if no elements in FIFO, otherwise returns false. |
void |
put(java.lang.Object o)
Put a non-null object in the FIFO. |
int |
removeAcceptor(FIFOAcceptor acceptor)
Decrements reference count for specified acceptor for this FIFO. |
int |
size()
Returns queue size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAXIMUM_NUMBER_OF_ACCEPTOR_REFERENCES
Constructor Detail |
---|
public FIFOImpl()
Method Detail |
---|
public final void put(java.lang.Object o) throws java.rmi.RemoteException
put
in interface FIFO
java.rmi.RemoteException
public final java.lang.Object get() throws java.lang.InterruptedException
get
in interface FIFO
java.lang.InterruptedException
public final java.lang.Object getNoBlock()
getNoBlock
in interface FIFO
public final java.lang.Object get(long delay) throws java.lang.InterruptedException
get
in interface FIFO
java.lang.InterruptedException
public final int addAcceptor(FIFOAcceptor acceptor)
public final int removeAcceptor(FIFOAcceptor acceptor) throws java.lang.Exception
java.lang.Exception
public final boolean hasAcceptorReferences()
public final boolean hasAcceptorReference(FIFOAcceptor acceptor)
public final java.util.LinkedList getQueueContents()
public final boolean isEmpty()
public final int size()
public final void clear()
public final FIFO getRemote() throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |