private class OncRpcTcpServerTransport.TransportList
extends java.lang.Object
Note that the methods are not synchronized as we leave this up to the caller, who can thus optimize access during critical sections.
Modifier and Type | Class and Description |
---|---|
private class |
OncRpcTcpServerTransport.TransportList.Node
Node class referencing an individual open transport and holding
references to the previous and next open transports.
|
Modifier and Type | Field and Description |
---|---|
private OncRpcTcpServerTransport.TransportList.Node |
head
Head node for list of open transports which does not represent
an open transport but instead excuses us of dealing with all
the special cases of real nodes at the begin or end of the list.
|
private int |
size
Number of (real) open transports currently registered in this
list.
|
Constructor and Description |
---|
OncRpcTcpServerTransport.TransportList()
Create a new instance of a list of open transports.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object o)
Add new transport to list of open transports.
|
boolean |
remove(java.lang.Object o)
Remove given transport from list of open transports.
|
java.lang.Object |
removeFirst()
Removes and returns the first open transport from list.
|
int |
size()
Returns the number of (open) transports in this list.
|
private OncRpcTcpServerTransport.TransportList.Node head
private int size
public OncRpcTcpServerTransport.TransportList()
public void add(java.lang.Object o)
public boolean remove(java.lang.Object o)
public java.lang.Object removeFirst()
public int size()