Package org.apache.mina.transport.vmpipe
Class VmPipeAcceptor
- java.lang.Object
-
- org.apache.mina.common.support.BaseIoService
-
- org.apache.mina.common.support.BaseIoAcceptor
-
- org.apache.mina.transport.vmpipe.VmPipeAcceptor
-
- All Implemented Interfaces:
IoAcceptor,IoService
public class VmPipeAcceptor extends BaseIoAcceptor
Binds the specifiedIoHandlerto the specifiedVmPipeAddress.
-
-
Constructor Summary
Constructors Constructor Description VmPipeAcceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(java.net.SocketAddress address, IoHandler handler, IoServiceConfig config)Binds to the specifiedaddressand handles incoming connections with the specifiedhandler.IoServiceConfiggetDefaultConfig()Returns the default configuration which is used when you didn't specify any configuration.voidunbind(java.net.SocketAddress address)Unbinds from the specifiedaddressand disconnects all clients connected there.voidunbindAll()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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.mina.common.IoService
addListener, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder
-
-
-
-
Method Detail
-
bind
public void bind(java.net.SocketAddress address, IoHandler handler, IoServiceConfig config) throws java.io.IOExceptionDescription copied from interface:IoAcceptorBinds to the specifiedaddressand handles incoming connections with the specifiedhandler.config- the configuration- Throws:
java.io.IOException- if failed to bind
-
unbind
public void unbind(java.net.SocketAddress address)
Description copied from interface:IoAcceptorUnbinds from the specifiedaddressand disconnects all clients connected there.
-
unbindAll
public void unbindAll()
Description copied from interface:IoAcceptorUnbinds all addresses which were bound by this acceptor.
-
getDefaultConfig
public IoServiceConfig getDefaultConfig()
Description copied from interface:IoServiceReturns the default configuration which is used when you didn't specify any configuration.
-
-