org.apache.mina.transport.vmpipe

Class VmPipeConnector

Implemented Interfaces:
IoConnector, IoService

public class VmPipeConnector
extends BaseIoConnector

Connects to IoHandlers which is bound on the specified VmPipeAddress.

Constructor Summary

VmPipeConnector()
Creates a new instance.

Method Summary

ConnectFuture
connect(SocketAddress address, SocketAddress localAddress, IoHandler handler, IoServiceConfig config)
Connects to the specified address.
ConnectFuture
connect(SocketAddress address, IoHandler handler, IoServiceConfig config)
Connects to the specified address.
IoServiceConfig
getDefaultConfig()
Returns the default configuration which is used when you didn't specify any configuration.

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

connect, connect

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

addListener, getFilterChain, getFilterChainBuilder, getListeners, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder

Constructor Details

VmPipeConnector

public VmPipeConnector()
Creates a new instance.

Method Details

connect

public ConnectFuture connect(SocketAddress address,
                             SocketAddress localAddress,
                             IoHandler handler,
                             IoServiceConfig config)
Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
Specified by:
connect in interface IoConnector
Parameters:
config - the configuration
Returns:
ConnectFuture that will tell the result of the connection attempt

connect

public ConnectFuture connect(SocketAddress address,
                             IoHandler handler,
                             IoServiceConfig config)
Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
Specified by:
connect in interface IoConnector
Parameters:
config - the configuration
Returns:
ConnectFuture that will tell the result of the connection attempt

getDefaultConfig

public IoServiceConfig getDefaultConfig()
Returns the default configuration which is used when you didn't specify any configuration.
Specified by:
getDefaultConfig in interface IoService