org.echarts.util
Interface FIFO

All Superinterfaces:
java.rmi.Remote, java.io.Serializable
All Known Implementing Classes:
FIFOImpl

public interface FIFO
extends java.rmi.Remote, java.io.Serializable


Field Summary
static long serialVersionUID
           
 
Method Summary
 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.
 void put(java.lang.Object obj)
           
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

put

void put(java.lang.Object obj)
         throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getNoBlock

java.lang.Object getNoBlock()
                            throws java.rmi.RemoteException
Get element from queue if one exists without blocking. If no element exists then return null.

Throws:
java.rmi.RemoteException

get

java.lang.Object get(long delay)
                     throws java.rmi.RemoteException,
                            java.lang.InterruptedException
Wait for a specified number of milliseconds for an element to arrive in the FIFO. If an element arrives in the queue before the delay expires, and the element is removed by another thread, then the thread returns without waiting for the additional time. A delay value of 0 will result in the caller blocking until an element arrives in the FIFO. If the call returns before an element can be removed from the FIFO, then a null value is returned.

Throws:
java.rmi.RemoteException
java.lang.InterruptedException

get

java.lang.Object get()
                     throws java.rmi.RemoteException,
                            java.lang.InterruptedException
Wait for an element to arrive in FIFO.

Throws:
java.rmi.RemoteException
java.lang.InterruptedException