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 Object
implements IoProcessor<VmPipeSession>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(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 ObjectgetMessageCopy(Object message) booleanbooleanvoidremove(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.
-
Constructor Details
-
VmPipeIoProcessor
private VmPipeIoProcessor()
-
-
Method Details
-
flush
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
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
-
remove
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
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
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.
-