org.apache.mina.transport.vmpipe

Class VmPipeAcceptor

Implemented Interfaces:
IoAcceptor, IoService

public class VmPipeAcceptor
extends BaseIoAcceptor

Binds the specified IoHandler to the specified VmPipeAddress.

Method Summary

void
bind(SocketAddress address, IoHandler handler, IoServiceConfig config)
Binds to the specified address and handles incoming connections with the specified handler.
IoServiceConfig
getDefaultConfig()
void
unbind(SocketAddress address)
Unbinds from the specified address and disconnects all clients connected there.
void
unbindAll()
Unbinds all addresses which were bound by this acceptor.

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

bind, newSession

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

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

Method Details

bind

public void bind(SocketAddress address,
                 IoHandler handler,
                 IoServiceConfig config)
            throws IOException
Binds to the specified address and handles incoming connections with the specified handler.
Specified by:
bind in interface IoAcceptor
Parameters:
config - the configuration

getDefaultConfig

public IoServiceConfig getDefaultConfig()
Specified by:
getDefaultConfig in interface IoService

unbind

public void unbind(SocketAddress address)
Unbinds from the specified address and disconnects all clients connected there.
Specified by:
unbind in interface IoAcceptor

unbindAll

public void unbindAll()
Unbinds all addresses which were bound by this acceptor.
Specified by:
unbindAll in interface IoAcceptor