private class VmPipeFilterChain.VmPipeIoProcessor extends java.lang.Object implements IoProcessor<VmPipeSession>
| Modifier | Constructor and Description |
|---|---|
private |
VmPipeIoProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(VmPipeSession session)
Adds the specified
session to the I/O processor so that
the I/O processor starts to perform any I/O operations related
with the session. |
void |
dispose()
Releases any resources allocated by this processor.
|
void |
flush(VmPipeSession session)
Flushes the internal write request queue of the specified
session. |
private java.lang.Object |
getMessageCopy(java.lang.Object message) |
boolean |
isDisposed()
Returns true if and if only all resources of this processor
have been disposed.
|
boolean |
isDisposing()
Returns true if and if only
IoProcessor.dispose() method has
been called. |
void |
remove(VmPipeSession session)
Removes and closes the specified
session from the I/O
processor so that the I/O processor closes the connection
associated with the session and releases any other related
resources. |
void |
updateTrafficControl(VmPipeSession session)
Controls the traffic of the specified
session depending of the
IoSession.isReadSuspended() and IoSession.isWriteSuspended()
flags |
void |
write(VmPipeSession session,
WriteRequest writeRequest)
Writes the WriteRequest for the specified
session. |
public void flush(VmPipeSession session)
IoProcessorsession.flush in interface IoProcessor<VmPipeSession>session - The session we want the message to be writtenpublic void write(VmPipeSession session, WriteRequest writeRequest)
session.write in interface IoProcessor<VmPipeSession>session - The session we want the message to be writtenwriteRequest - the WriteRequest to writeprivate java.lang.Object getMessageCopy(java.lang.Object message)
public void remove(VmPipeSession session)
IoProcessorsession from the I/O
processor so that the I/O processor closes the connection
associated with the session and releases any other related
resources.remove in interface IoProcessor<VmPipeSession>public void add(VmPipeSession session)
IoProcessorsession to the I/O processor so that
the I/O processor starts to perform any I/O operations related
with the session.add in interface IoProcessor<VmPipeSession>session - The added sessionpublic void updateTrafficControl(VmPipeSession session)
IoProcessorsession depending of the
IoSession.isReadSuspended() and IoSession.isWriteSuspended()
flagsupdateTrafficControl in interface IoProcessor<VmPipeSession>public void dispose()
IoProcessordispose in interface IoProcessor<VmPipeSession>public boolean isDisposed()
IoProcessorisDisposed in interface IoProcessor<VmPipeSession>public boolean isDisposing()
IoProcessorIoProcessor.dispose() method has
been called. Please note that this method will return true
even after all the related resources are released.isDisposing in interface IoProcessor<VmPipeSession>