Package org.apache.mina.transport.vmpipe
Class VmPipeSession
- java.lang.Object
-
- org.apache.mina.core.session.AbstractIoSession
-
- org.apache.mina.transport.vmpipe.VmPipeSession
-
- All Implemented Interfaces:
IoSession
class VmPipeSession extends AbstractIoSession
AIoSessionfor in-VM transport (VM_PIPE).- Author:
- Apache MINA Project
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static TransportMetadataMETADATA(package private) BlockingQueue<Object>receivedMessageQueuePackage protected-
Fields inherited from class org.apache.mina.core.session.AbstractIoSession
CLOSE_REQUEST, config, MESSAGE_SENT_REQUEST
-
-
Constructor Summary
Constructors Constructor Description VmPipeSession(IoService service, IoServiceListenerSupport serviceListeners, VmPipeAddress localAddress, IoHandler handler, VmPipe remoteEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmPipeSessionConfiggetConfig()IoFilterChaingetFilterChain()VmPipeAddressgetLocalAddress()(package private) LockgetLock()IoProcessor<VmPipeSession>getProcessor()VmPipeAddressgetRemoteAddress()VmPipeSessiongetRemoteSession()VmPipeAddressgetServiceAddress()(package private) IoServiceListenerSupportgetServiceListeners()TransportMetadatagetTransportMetadata()(package private) WriteRequestQueuegetWriteRequestQueue0()(package private) voidincreaseWrittenBytes0(int increment, long currentTime)-
Methods inherited from class org.apache.mina.core.session.AbstractIoSession
close, close, closeNow, closeOnFlush, containsAttribute, decreaseReadBufferSize, decreaseScheduledBytesAndMessages, destroy, equals, getAttachment, getAttribute, getAttribute, getAttributeKeys, getAttributeMap, getBothIdleCount, getCloseFuture, getCreationTime, getCurrentWriteMessage, getCurrentWriteRequest, getHandler, getId, getIdleCount, getLastBothIdleTime, getLastIdleTime, getLastIoTime, getLastReaderIdleTime, getLastReadTime, getLastWriterIdleTime, getLastWriteTime, getReadBytes, getReadBytesThroughput, getReaderIdleCount, getReadMessages, getReadMessagesThroughput, getScheduledWriteBytes, getScheduledWriteMessages, getService, getWriteRequestQueue, getWriterIdleCount, getWrittenBytes, getWrittenBytesThroughput, getWrittenMessages, getWrittenMessagesThroughput, hashCode, increaseIdleCount, increaseReadBufferSize, increaseReadBytes, increaseReadMessages, increaseScheduledWriteBytes, increaseScheduledWriteMessages, increaseWrittenBytes, increaseWrittenMessages, isActive, isBothIdle, isClosing, isConnected, isIdle, isReaderIdle, isReadSuspended, isScheduledForFlush, isSecured, isServer, isWriterIdle, isWriteSuspended, notifyIdleness, notifyIdleSession, offerClosedReadFuture, offerFailedReadFuture, offerReadFuture, read, removeAttribute, removeAttribute, replaceAttribute, resumeRead, resumeWrite, scheduledForFlush, setAttachment, setAttribute, setAttribute, setAttributeIfAbsent, setAttributeIfAbsent, setAttributeMap, setCurrentWriteRequest, setScheduledForFlush, setScheduledWriteBytes, setScheduledWriteMessages, setWriteRequestQueue, suspendRead, suspendWrite, toString, unscheduledForFlush, updateThroughput, write, write
-
-
-
-
Field Detail
-
METADATA
static final TransportMetadata METADATA
-
receivedMessageQueue
final BlockingQueue<Object> receivedMessageQueue
Package protected
-
-
Constructor Detail
-
VmPipeSession
VmPipeSession(IoService service, IoServiceListenerSupport serviceListeners, VmPipeAddress localAddress, IoHandler handler, VmPipe remoteEntry)
-
-
Method Detail
-
getProcessor
public IoProcessor<VmPipeSession> getProcessor()
- Specified by:
getProcessorin classAbstractIoSession- Returns:
- The associated IoProcessor for this session
-
getServiceListeners
IoServiceListenerSupport getServiceListeners()
-
getConfig
public VmPipeSessionConfig getConfig()
Description copied from class:AbstractIoSession- Specified by:
getConfigin interfaceIoSession- Overrides:
getConfigin classAbstractIoSession- Returns:
- the configuration of this session.
-
getFilterChain
public IoFilterChain getFilterChain()
- Returns:
- the filter chain that only affects this session.
-
getRemoteSession
public VmPipeSession getRemoteSession()
-
getTransportMetadata
public TransportMetadata getTransportMetadata()
- Returns:
- the
TransportMetadatathat this session runs on.
-
getRemoteAddress
public VmPipeAddress getRemoteAddress()
- Returns:
- the socket address of remote peer.
-
getLocalAddress
public VmPipeAddress getLocalAddress()
- Returns:
- the socket address of local machine which is associated with this session.
-
getServiceAddress
public VmPipeAddress getServiceAddress()
Description copied from class:AbstractIoSession- Specified by:
getServiceAddressin interfaceIoSession- Overrides:
getServiceAddressin classAbstractIoSession- Returns:
- the socket address of the
IoServicelistens to to manage this session. If this session is managed byIoAcceptor, it returns theSocketAddresswhich is specified as a parameter ofIoAcceptor.bind(). If this session is managed byIoConnector, this method returns the same address with that ofIoSession.getRemoteAddress().
-
increaseWrittenBytes0
void increaseWrittenBytes0(int increment, long currentTime)
-
getWriteRequestQueue0
WriteRequestQueue getWriteRequestQueue0()
-
getLock
Lock getLock()
-
-