Class VmPipeSessionImpl
java.lang.Object
org.apache.mina.common.support.BaseIoSession
org.apache.mina.transport.vmpipe.support.VmPipeSessionImpl
- All Implemented Interfaces:
IoSession
A
IoSession
for in-VM transport (VM_PIPE).-
Constructor Summary
ConstructorsConstructorDescriptionVmPipeSessionImpl
(IoService service, IoServiceConfig serviceConfig, IoServiceListenerSupport serviceListeners, SocketAddress localAddress, IoHandler handler, VmPipe remoteEntry) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
close0()
Implement this method to perform real close operation.Returns the configuration of this session.Returns the filter chain that only affects this session.Returns theIoHandler
which handles this session.Returns the socket address of local machine which is associated with this session.Returns the socket address of remote peer.Returns theIoService
which provides I/O service to this session.Returns the socket address of theIoService
listens to to manage this session.Returns theIoServiceConfig
of this session.Returns transport type of this session.protected void
Signals theIoService
that theTrafficMask
of this session has been changed.protected void
write0
(IoFilter.WriteRequest writeRequest) Implement this method to perform real write operation with the specifiedwriteRequest
.Methods inherited from class org.apache.mina.common.support.BaseIoSession
close, containsAttribute, getAttachment, getAttribute, getAttributeKeys, getCloseFuture, getCreationTime, getIdleCount, getIdleTime, getIdleTimeInMillis, getLastIdleTime, getLastIoTime, getLastReadTime, getLastWriteTime, getReadBytes, getReadMessages, getScheduledWriteBytes, getScheduledWriteRequests, getTrafficMask, getWriteTimeout, getWriteTimeoutInMillis, getWrittenBytes, getWrittenMessages, getWrittenWriteRequests, increaseIdleCount, increaseReadBytes, increaseReadMessages, increaseScheduledWriteBytes, increaseScheduledWriteRequests, increaseWrittenBytes, increaseWrittenMessages, isClosing, isConnected, isIdle, isScheduledForFlush, removeAttribute, resumeRead, resumeWrite, setAttachment, setAttribute, setAttribute, setIdleTime, setScheduledForFlush, setTrafficMask, setWriteTimeout, suspendRead, suspendWrite, toString, write, write
-
Constructor Details
-
VmPipeSessionImpl
public VmPipeSessionImpl(IoService service, IoServiceConfig serviceConfig, IoServiceListenerSupport serviceListeners, SocketAddress localAddress, IoHandler handler, VmPipe remoteEntry)
-
-
Method Details
-
getService
Description copied from interface:IoSession
Returns theIoService
which provides I/O service to this session. -
getServiceConfig
Description copied from interface:IoSession
Returns theIoServiceConfig
of this session. -
getConfig
Description copied from interface:IoSession
Returns the configuration of this session. -
getFilterChain
Description copied from interface:IoSession
Returns the filter chain that only affects this session. -
getRemoteSession
-
getHandler
Description copied from interface:IoSession
Returns theIoHandler
which handles this session. -
close0
protected void close0()Description copied from class:BaseIoSession
Implement this method to perform real close operation. By default, this method is implemented to set the future to 'closed' immediately.- Overrides:
close0
in classBaseIoSession
-
write0
Description copied from class:BaseIoSession
Implement this method to perform real write operation with the specifiedwriteRequest
. By default, this method is implemented to set the future to 'not written' immediately.- Overrides:
write0
in classBaseIoSession
- Parameters:
writeRequest
- Write request to make
-
getTransportType
Description copied from interface:IoSession
Returns transport type of this session. -
getRemoteAddress
Description copied from interface:IoSession
Returns the socket address of remote peer. -
getLocalAddress
Description copied from interface:IoSession
Returns the socket address of local machine which is associated with this session. -
getServiceAddress
Description copied from interface:IoSession
Returns the socket address of theIoService
listens to to manage this session. If this session is managed byIoAcceptor
, it returns theSocketAddress
which is specified as a parameter ofIoAcceptor.bind(SocketAddress, IoHandler)
. If this session is managed byIoConnector
, this method returns the same address with that ofIoSession.getRemoteAddress()
. -
updateTrafficMask
protected void updateTrafficMask()Description copied from class:BaseIoSession
Signals theIoService
that theTrafficMask
of this session has been changed.- Specified by:
updateTrafficMask
in classBaseIoSession
-