java.lang.Object
com.synchrona.jred.irlap.IrLAPSendQueue
- class IrLAPSendQueue
- extends java.lang.Object
|
Method Summary |
void |
addFrame(IrLAPFrame frame)
|
IrLAPFrame |
get(int nIndex)
Returns the nIndex'th frame in the queue without removing it,
because IrLAP frames have to be acknowledged or resent. |
IrLAPFrame |
getNext()
Returns the first frame in the queue without removing it,
because IrLAP data-carrying frames have to be acknowledged
or resent. |
boolean |
pendingDataRequests()
Returns true if the list is nonempty, implying there are
outstanding send requests. |
void |
remove(int nIndex)
Remove a frame from the queue. |
void |
remove(IrLAPFrame frame)
|
void |
removeFirst()
Remove the first frame from the queue. |
int |
size()
Returns the number of frames in the send queue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_list
private java.util.LinkedList m_list
IrLAPSendQueue
public IrLAPSendQueue()
addFrame
public void addFrame(IrLAPFrame frame)
get
public IrLAPFrame get(int nIndex)
- Returns the nIndex'th frame in the queue without removing it,
because IrLAP frames have to be acknowledged or resent.
getNext
public IrLAPFrame getNext()
- Returns the first frame in the queue without removing it,
because IrLAP data-carrying frames have to be acknowledged
or resent.
pendingDataRequests
public boolean pendingDataRequests()
- Returns true if the list is nonempty, implying there are
outstanding send requests.
remove
public void remove(int nIndex)
- Remove a frame from the queue. Unnumbered and supervisory
frames should always be removed from the queue upon being sent.
Information frames should remain in the queue until they are
acknowledged.
remove
public void remove(IrLAPFrame frame)
removeFirst
public void removeFirst()
- Remove the first frame from the queue. Unnumbered and supervisory
frames should always be removed from the queue upon being sent.
Information frames should remain in the queue until they are
acknowledged.
size
public int size()
- Returns the number of frames in the send queue.