Class VmPipeConnector
java.lang.Object
org.apache.mina.core.service.AbstractIoService
org.apache.mina.core.service.AbstractIoConnector
org.apache.mina.transport.vmpipe.VmPipeConnector
- All Implemented Interfaces:
IoConnector, IoService
Connects to
IoHandlers which is bound on the specified
VmPipeAddress.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractIoService
AbstractIoService.ServiceOperationFuture -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IdleStatusCheckerprivate static final IoFutureListener<IoFuture> private static intprivate static final Set<VmPipeAddress> Fields inherited from class AbstractIoService
disposalLock, LOGGER, sessionConfig -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.VmPipeConnector(Executor executor) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected ConnectFutureconnect0(SocketAddress remoteAddress, SocketAddress localAddress, IoSessionInitializer<? extends ConnectFuture> sessionInitializer) Implement this method to perform the actual connect operation.protected voiddispose0()Implement this method to release any acquired resources.private static VmPipeAddressMethods inherited from class AbstractIoConnector
connect, connect, connect, connect, connect, connect, finishSessionInitialization0, getConnectTimeout, getConnectTimeoutCheckInterval, getConnectTimeoutMillis, getDefaultLocalAddress, getDefaultRemoteAddress, setConnectTimeout, setConnectTimeoutCheckInterval, setConnectTimeoutMillis, setDefaultLocalAddress, setDefaultRemoteAddress, toStringMethods inherited from class AbstractIoService
addListener, broadcast, dispose, dispose, executeWorker, executeWorker, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getListeners, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, initSession, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactoryMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IoService
addListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactory
-
Field Details
-
idleChecker
-
TAKEN_LOCAL_ADDRESSES
-
nextLocalPort
private static int nextLocalPort -
LOCAL_ADDRESS_RECLAIMER
-
-
Constructor Details
-
VmPipeConnector
public VmPipeConnector()Creates a new instance. -
VmPipeConnector
Creates a new instance.- Parameters:
executor- The executor to use
-
-
Method Details
-
getTransportMetadata
- Returns:
- the
TransportMetadatathat this service runs on.
-
getSessionConfig
- Returns:
- the default configuration of the new
IoSessions created by this service.
-
connect0
protected ConnectFuture connect0(SocketAddress remoteAddress, SocketAddress localAddress, IoSessionInitializer<? extends ConnectFuture> sessionInitializer) Implement this method to perform the actual connect operation.- Specified by:
connect0in classAbstractIoConnector- Parameters:
remoteAddress- The remote address to connect fromlocalAddress-nullif no local address is specifiedsessionInitializer- The IoSessionInitializer to use when the connection s successful- Returns:
- The ConnectFuture associated with this asynchronous operation
-
dispose0
Implement this method to release any acquired resources. This method is invoked only once byAbstractIoService.dispose().- Specified by:
dispose0in classAbstractIoService- Throws:
Exception- If the dispose failed
-
nextLocalAddress
- Throws:
IOException
-