public class SocketMonitorQueue
extends java.lang.Object
SocketMonitorQueue is responsible for storing information about opened or closed system sockets.| Modifier and Type | Field and Description |
|---|---|
private java.util.Queue<SocketInfo> |
listOfClosedSockets
Queue of information about closed sockets.
|
private java.util.Queue<SocketInfo> |
listOfOpenSockets
Queue of information about opened sockets.
|
| Constructor and Description |
|---|
SocketMonitorQueue() |
| Modifier and Type | Method and Description |
|---|---|
SocketInfo |
getNextClosedSocketInfo()
Gets from the queue an information about a closed socket.
|
SocketInfo |
getNextOpenSocketInfo()
Gets from the queue an information about an opened socket.
|
protected boolean |
queueClosedSocketInfo(SocketInfo socketInfo)
Adds to the queue information about a closed socket.
|
protected boolean |
queueOpenSocketInfo(SocketInfo socketInfo)
Adds to the queue information about an opened socket.
|
private java.util.Queue<SocketInfo> listOfOpenSockets
private java.util.Queue<SocketInfo> listOfClosedSockets
protected boolean queueOpenSocketInfo(SocketInfo socketInfo)
socketInfo - information about an opened sockettrue if the information was added, false otherwiseprotected boolean queueClosedSocketInfo(SocketInfo socketInfo)
socketInfo - information about a closed sockettrue if the information was added, false otherwisepublic SocketInfo getNextOpenSocketInfo()
public SocketInfo getNextClosedSocketInfo()