public class VmPipeSessionImpl extends BaseIoSession
IoSession for in-VM transport (VM_PIPE).| 构造器和说明 |
|---|
VmPipeSessionImpl(IoService service,
IoServiceConfig serviceConfig,
IoServiceListenerSupport serviceListeners,
java.net.SocketAddress localAddress,
IoHandler handler,
VmPipe remoteEntry) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
close0()
Implement this method to perform real close operation.
|
IoSessionConfig |
getConfig()
Returns the configuration of this session.
|
IoFilterChain |
getFilterChain()
Returns the filter chain that only affects this session.
|
IoHandler |
getHandler()
Returns the
IoHandler which handles this session. |
java.net.SocketAddress |
getLocalAddress()
Returns the socket address of local machine which is associated with this
session.
|
java.net.SocketAddress |
getRemoteAddress()
Returns the socket address of remote peer.
|
VmPipeSessionImpl |
getRemoteSession() |
IoService |
getService()
Returns the
IoService which provides I/O service to this session. |
java.net.SocketAddress |
getServiceAddress()
Returns the socket address of the
IoService listens to to manage
this session. |
IoServiceConfig |
getServiceConfig()
Returns the
IoServiceConfig of this session. |
TransportType |
getTransportType()
Returns transport type of this session.
|
protected void |
updateTrafficMask()
Signals the
IoService that the TrafficMask of this
session has been changed. |
protected void |
write0(IoFilter.WriteRequest writeRequest)
Implement this method to perform real write operation with
the specified
writeRequest. |
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, writepublic VmPipeSessionImpl(IoService service, IoServiceConfig serviceConfig, IoServiceListenerSupport serviceListeners, java.net.SocketAddress localAddress, IoHandler handler, VmPipe remoteEntry)
public IoService getService()
IoSessionIoService which provides I/O service to this session.public IoServiceConfig getServiceConfig()
IoSessionIoServiceConfig of this session.public IoSessionConfig getConfig()
IoSessionpublic IoFilterChain getFilterChain()
IoSessionpublic VmPipeSessionImpl getRemoteSession()
public IoHandler getHandler()
IoSessionIoHandler which handles this session.protected void close0()
BaseIoSessionclose0 在类中 BaseIoSessionprotected void write0(IoFilter.WriteRequest writeRequest)
BaseIoSessionwriteRequest.
By default, this method is implemented to set the future to
'not written' immediately.write0 在类中 BaseIoSessionwriteRequest - Write request to makepublic TransportType getTransportType()
IoSessionpublic java.net.SocketAddress getRemoteAddress()
IoSessionpublic java.net.SocketAddress getLocalAddress()
IoSessionpublic java.net.SocketAddress getServiceAddress()
IoSessionIoService listens to to manage
this session. If this session is managed by IoAcceptor, it
returns the SocketAddress which is specified as a parameter of
IoAcceptor.bind(SocketAddress, IoHandler). If this session is
managed by IoConnector, this method returns the same address with
that of IoSession.getRemoteAddress().protected void updateTrafficMask()
BaseIoSessionIoService that the TrafficMask of this
session has been changed.updateTrafficMask 在类中 BaseIoSession