|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.common.support.BaseIoService
org.apache.mina.common.support.BaseIoAcceptor
org.apache.mina.transport.vmpipe.VmPipeAcceptor
public class VmPipeAcceptor
Binds the specified IoHandler
to the specified
VmPipeAddress
.
Constructor Summary | |
---|---|
VmPipeAcceptor()
|
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()
Returns the default configuration which is used when you didn't specify any configuration. |
Set |
getManagedSessions(SocketAddress address)
Returns all sessions with the specified remote or local address, which are currently managed by this service. |
boolean |
isBound(SocketAddress address)
Returns true if and only if the specified address is bound by this acceptor. |
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 |
---|
getFilterChain, getFilterChainBuilder, 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 |
---|
getFilterChain, getFilterChainBuilder, setFilterChainBuilder |
Constructor Detail |
---|
public VmPipeAcceptor()
Method Detail |
---|
public void bind(SocketAddress address, IoHandler handler, IoServiceConfig config) throws IOException
IoAcceptor
address
and handles incoming
connections with the specified handler
.
config
- the configuration
IOException
- if failed to bindpublic Set getManagedSessions(SocketAddress address)
IoService
IoAcceptor
will assume the specified address is a local
address, and IoConnector
will assume it's a remote address.
getManagedSessions
in interface IoService
getManagedSessions
in class org.apache.mina.common.support.BaseIoService
address
- the address to return all sessions for.
public void unbind(SocketAddress address)
IoAcceptor
address
and disconnects all clients
connected there.
public void unbindAll()
IoAcceptor
public boolean isBound(SocketAddress address)
IoAcceptor
public IoServiceConfig getDefaultConfig()
IoService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |