public final class VmPipeConnector extends AbstractIoConnector
IoHandlers which is bound on the specified
VmPipeAddress.| Modifier and Type | Class and Description |
|---|---|
private static class |
VmPipeConnector.LocalAddressReclaimer |
AbstractIoService.ServiceOperationFuture| Modifier and Type | Field and Description |
|---|---|
private IdleStatusChecker |
idleChecker |
private static IoFutureListener<IoFuture> |
LOCAL_ADDRESS_RECLAIMER |
private static int |
nextLocalPort |
private static java.util.Set<VmPipeAddress> |
TAKEN_LOCAL_ADDRESSES |
disposalLock, sessionConfig| Constructor and Description |
|---|
VmPipeConnector()
Creates a new instance.
|
VmPipeConnector(java.util.concurrent.Executor executor)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected ConnectFuture |
connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Implement this method to perform the actual connect operation.
|
protected void |
dispose0()
Implement this method to release any acquired resources.
|
VmPipeSessionConfig |
getSessionConfig()
Returns the default configuration of the new
IoSessions
created by this service. |
TransportMetadata |
getTransportMetadata()
Returns the
TransportMetadata that this service runs on. |
private static VmPipeAddress |
nextLocalAddress() |
connect, connect, connect, connect, connect, connect, finishSessionInitialization0, getConnectTimeout, getConnectTimeoutCheckInterval, getConnectTimeoutMillis, getDefaultLocalAddress, getDefaultRemoteAddress, setConnectTimeout, setConnectTimeoutCheckInterval, setConnectTimeoutMillis, setDefaultLocalAddress, setDefaultRemoteAddress, toStringaddListener, broadcast, dispose, dispose, executeWorker, executeWorker, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getListeners, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, initSession, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactoryprivate IdleStatusChecker idleChecker
private static final java.util.Set<VmPipeAddress> TAKEN_LOCAL_ADDRESSES
private static int nextLocalPort
private static final IoFutureListener<IoFuture> LOCAL_ADDRESS_RECLAIMER
public VmPipeConnector()
public VmPipeConnector(java.util.concurrent.Executor executor)
public TransportMetadata getTransportMetadata()
IoServiceTransportMetadata that this service runs on.public VmPipeSessionConfig getSessionConfig()
IoSessions
created by this service.protected ConnectFuture connect0(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
AbstractIoConnectorconnect0 in class AbstractIoConnectorlocalAddress - null if no local address is specifiedprotected void dispose0()
throws java.lang.Exception
AbstractIoServiceAbstractIoService.dispose().dispose0 in class AbstractIoServicejava.lang.Exceptionprivate static VmPipeAddress nextLocalAddress() throws java.io.IOException
java.io.IOException