org.apache.mina.transport.vmpipe.support

Class VmPipeSessionImpl

Implemented Interfaces:
IoSession

public class VmPipeSessionImpl
extends BaseIoSession

A IoSession for in-VM transport (VM_PIPE).

Constructor Summary

VmPipeSessionImpl(IoService service, IoServiceConfig serviceConfig, IoServiceListenerSupport serviceListeners, SocketAddress localAddress, IoHandler handler, VmPipe remoteEntry)

Method Summary

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.
SocketAddress
getLocalAddress()
Returns the socket address of local machine which is associated with this session.
SocketAddress
getRemoteAddress()
Returns the socket address of remote peer.
VmPipeSessionImpl
getRemoteSession()
IoService
getService()
Returns the IoService which provides I/O service to this session.
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 @Override
void close0()
protected @Override
void updateTrafficMask()
protected @Override
void write0(IoFilter.WriteRequest writeRequest)

Methods inherited from class org.apache.mina.common.support.BaseIoSession

String toString, close, close0, 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, updateTrafficMask, write, write, write0

Constructor Details

VmPipeSessionImpl

public VmPipeSessionImpl(IoService service,
                         IoServiceConfig serviceConfig,
                         IoServiceListenerSupport serviceListeners,
                         SocketAddress localAddress,
                         IoHandler handler,
                         VmPipe remoteEntry)

Method Details

getConfig

public IoSessionConfig getConfig()
Returns the configuration of this session.
Specified by:
getConfig in interface IoSession

getFilterChain

public IoFilterChain getFilterChain()
Returns the filter chain that only affects this session.
Specified by:
getFilterChain in interface IoSession

getHandler

public IoHandler getHandler()
Returns the IoHandler which handles this session.
Specified by:
getHandler in interface IoSession

getLocalAddress

public SocketAddress getLocalAddress()
Returns the socket address of local machine which is associated with this session.
Specified by:
getLocalAddress in interface IoSession

getRemoteAddress

public SocketAddress getRemoteAddress()
Returns the socket address of remote peer.
Specified by:
getRemoteAddress in interface IoSession

getRemoteSession

public VmPipeSessionImpl getRemoteSession()

getService

public IoService getService()
Returns the IoService which provides I/O service to this session.
Specified by:
getService in interface IoSession

getServiceAddress

public SocketAddress getServiceAddress()
Returns the socket address of the IoService 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().
Specified by:
getServiceAddress in interface IoSession

getServiceConfig

public IoServiceConfig getServiceConfig()
Returns the IoServiceConfig of this session.
Specified by:
getServiceConfig in interface IoSession

getTransportType

public TransportType getTransportType()
Returns transport type of this session.
Specified by:
getTransportType in interface IoSession

void close0

protected @Override void close0()

void updateTrafficMask

protected @Override void updateTrafficMask()

void write0

protected @Override void write0(IoFilter.WriteRequest writeRequest)