|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoService
Base interface for all IoAcceptor
s and IoConnector
s
that provide I/O service and manage IoSession
s.
Method Summary | |
---|---|
IoServiceConfig |
getDefaultConfig()
Returns the default configuration which is used when you didn't specify any configuration. |
DefaultIoFilterChainBuilder |
getFilterChain()
A shortcut for ( ( DefaultIoFilterChainBuilder ) getFilterChainBuilder() ). |
IoFilterChainBuilder |
getFilterChainBuilder()
Returns the global IoFilterChainBuilder which will modify the
IoFilterChain of all IoSession s which is managed
by this service. |
Set |
getManagedSessions(SocketAddress address)
Returns all sessions with the specified remote or local address, which are currently managed by this service. |
void |
setFilterChainBuilder(IoFilterChainBuilder builder)
Sets the global IoFilterChainBuilder which will modify the
IoFilterChain of all IoSession s which is managed
by this service. |
Method Detail |
---|
Set getManagedSessions(SocketAddress address)
IoAcceptor
will assume the specified address is a local
address, and IoConnector
will assume it's a remote address.
address
- the address to return all sessions for.
IllegalArgumentException
- if the specified address has
not been bound.
UnsupportedOperationException
- if this operation isn't supported
for the particular transport type implemented by this IoService
.IoServiceConfig getDefaultConfig()
IoFilterChainBuilder getFilterChainBuilder()
IoFilterChainBuilder
which will modify the
IoFilterChain
of all IoSession
s which is managed
by this service.
The default value is an empty DefaultIoFilterChainBuilder
.
void setFilterChainBuilder(IoFilterChainBuilder builder)
IoFilterChainBuilder
which will modify the
IoFilterChain
of all IoSession
s which is managed
by this service.
If you specify null this property will be set to
an empty DefaultIoFilterChainBuilder
.
DefaultIoFilterChainBuilder getFilterChain()
getFilterChainBuilder()
).
Please note that the returned object is not a real IoFilterChain
but a DefaultIoFilterChainBuilder
. Modifying the returned builder
won't affect the existing IoSession
s at all, because
IoFilterChainBuilder
s affect only newly created IoSession
s.
IllegalStateException
- if the current IoFilterChainBuilder
is
not a DefaultIoFilterChainBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |