public class VmPipeAcceptor extends BaseIoAcceptor
IoHandler
to the specified
VmPipeAddress
.Constructor and Description |
---|
VmPipeAcceptor() |
Modifier and Type | Method and Description |
---|---|
void |
bind(SocketAddress address,
IoHandler handler,
IoServiceConfig config)
Binds to the specified
address and handles incoming
connections with the specified handler . |
IoServiceConfig |
getDefaultConfig()
Returns the default configuration which is used when you didn't specify
any configuration.
|
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.
|
bind, newSession
addListener, getFilterChain, getFilterChainBuilder, getListeners, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, getFilterChain, getFilterChainBuilder, getManagedServiceAddresses, getManagedSessions, isManaged, removeListener, setFilterChainBuilder
public void bind(SocketAddress address, IoHandler handler, IoServiceConfig config) throws IOException
IoAcceptor
address
and handles incoming
connections with the specified handler
.config
- the configurationIOException
- if failed to bindpublic void unbind(SocketAddress address)
IoAcceptor
address
and disconnects all clients
connected there.public void unbindAll()
IoAcceptor
public IoServiceConfig getDefaultConfig()
IoService
Copyright © 2004–2017 Apache MINA Project. All rights reserved.