public class IoSessionEventQueue
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
logger |
private ProxyIoSession |
proxyIoSession
The proxy session object.
|
private java.util.Queue<IoSessionEvent> |
sessionEventsQueue
Queue of session events which occurred before the proxy handshake had completed.
|
| Constructor and Description |
|---|
IoSessionEventQueue(ProxyIoSession proxyIoSession) |
| Modifier and Type | Method and Description |
|---|---|
private void |
discardSessionQueueEvents()
Discard all events from the queue.
|
void |
enqueueEventIfNecessary(IoSessionEvent evt)
Event is enqueued only if necessary :
- socks proxies do not need the reconnection feature so events are always
forwarded for these.
|
private void |
enqueueSessionEvent(IoSessionEvent evt)
Enqueue an event to be delivered once handshaking is complete.
|
void |
flushPendingSessionEvents()
Send any session event which were queued while waiting for handshaking to complete.
|
private static final org.slf4j.Logger logger
private ProxyIoSession proxyIoSession
private java.util.Queue<IoSessionEvent> sessionEventsQueue
public IoSessionEventQueue(ProxyIoSession proxyIoSession)
private void discardSessionQueueEvents()
public void enqueueEventIfNecessary(IoSessionEvent evt)
evt - the event to enqueuepublic void flushPendingSessionEvents()
throws java.lang.Exception
java.lang.Exceptionprivate void enqueueSessionEvent(IoSessionEvent evt)
evt - the session event to enqueue