Package org.apache.mina.transport.vmpipe
Class VmPipeFilterChain.VmPipeIoProcessor
- java.lang.Object
-
- org.apache.mina.transport.vmpipe.VmPipeFilterChain.VmPipeIoProcessor
-
- All Implemented Interfaces:
IoProcessor<VmPipeSession>
- Enclosing class:
- VmPipeFilterChain
private class VmPipeFilterChain.VmPipeIoProcessor extends java.lang.Object implements IoProcessor<VmPipeSession>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateVmPipeIoProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(VmPipeSession session)Adds the specifiedsessionto the I/O processor so that the I/O processor starts to perform any I/O operations related with thesession.voiddispose()Releases any resources allocated by this processor.voidflush(VmPipeSession session)Flushes the internal write request queue of the specifiedsession.private java.lang.ObjectgetMessageCopy(java.lang.Object message)booleanisDisposed()booleanisDisposing()voidremove(VmPipeSession session)Removes and closes the specifiedsessionfrom the I/O processor so that the I/O processor closes the connection associated with thesessionand releases any other related resources.voidupdateTrafficControl(VmPipeSession session)Controls the traffic of the specifiedsessiondepending of theIoSession.isReadSuspended()andIoSession.isWriteSuspended()flagsvoidwrite(VmPipeSession session, WriteRequest writeRequest)Writes the WriteRequest for the specifiedsession.
-
-
-
Method Detail
-
flush
public void flush(VmPipeSession session)
Description copied from interface:IoProcessorFlushes the internal write request queue of the specifiedsession.- Specified by:
flushin interfaceIoProcessor<VmPipeSession>- Parameters:
session- The session we want the message to be written
-
write
public void write(VmPipeSession session, WriteRequest writeRequest)
Writes the WriteRequest for the specifiedsession.- Specified by:
writein interfaceIoProcessor<VmPipeSession>- Parameters:
session- The session we want the message to be writtenwriteRequest- the WriteRequest to write
-
getMessageCopy
private java.lang.Object getMessageCopy(java.lang.Object message)
-
remove
public void remove(VmPipeSession session)
Description copied from interface:IoProcessorRemoves and closes the specifiedsessionfrom the I/O processor so that the I/O processor closes the connection associated with thesessionand releases any other related resources.- Specified by:
removein interfaceIoProcessor<VmPipeSession>- Parameters:
session- The session to be removed
-
add
public void add(VmPipeSession session)
Description copied from interface:IoProcessorAdds the specifiedsessionto the I/O processor so that the I/O processor starts to perform any I/O operations related with thesession.- Specified by:
addin interfaceIoProcessor<VmPipeSession>- Parameters:
session- The added session
-
updateTrafficControl
public void updateTrafficControl(VmPipeSession session)
Description copied from interface:IoProcessorControls the traffic of the specifiedsessiondepending of theIoSession.isReadSuspended()andIoSession.isWriteSuspended()flags- Specified by:
updateTrafficControlin interfaceIoProcessor<VmPipeSession>- Parameters:
session- The session to be updated
-
dispose
public void dispose()
Description copied from interface:IoProcessorReleases any resources allocated by this processor. Please note that the resources might not be released as long as there are any sessions managed by this processor. Most implementations will close all sessions immediately and release the related resources.- Specified by:
disposein interfaceIoProcessor<VmPipeSession>
-
isDisposed
public boolean isDisposed()
- Specified by:
isDisposedin interfaceIoProcessor<VmPipeSession>- Returns:
trueif and if only all resources of this processor have been disposed.
-
isDisposing
public boolean isDisposing()
- Specified by:
isDisposingin interfaceIoProcessor<VmPipeSession>- Returns:
trueif and if onlyIoProcessor.dispose()method has been called. Please note that this method will returntrueeven after all the related resources are released.
-
-