| Modifier and Type | Field and Description |
|---|---|
| public static final Map | |
| protected final AtomicBoolean | |
| private IoServiceEventListener | |
| private final ExecutorService | |
| private final AsynchronousChannelGroup | |
| private final IoHandler | |
| protected final PropertyResolver | |
| protected final Map |
| Access | Constructor and Description |
|---|---|
| protected | Nio2Service(PropertyResolver propertyResolver, IoHandler handler, AsynchronousChannelGroup group, ExecutorService resumeTasks)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected AsynchronousChannelGroup | |
| protected ExecutorService | |
| protected Closeable | |
| public IoHandler | |
| public IoServiceEventListener | |
| public Map | getManagedSessions()
Implements org. Returns the map of all sessions which are currently managed by this service. |
| public void | |
| public void | |
| protected <T> boolean | |
| protected <S extends NetworkChannel> S | |
| protected void |
| CONFIGURABLE_OPTIONS | back to summary |
|---|---|
| public static final Map<Property<?>, AbstractMap. | |
| disposing | back to summary |
|---|---|
| protected final AtomicBoolean disposing | |
| eventListener | back to summary |
|---|---|
| private IoServiceEventListener eventListener | |
| executor | back to summary |
|---|---|
| private final ExecutorService executor | |
| group | back to summary |
|---|---|
| private final AsynchronousChannelGroup group | |
| handler | back to summary |
|---|---|
| private final IoHandler handler | |
| propertyResolver | back to summary |
|---|---|
| protected final PropertyResolver propertyResolver | |
| sessions | back to summary |
|---|---|
| protected final Map<Long, IoSession> sessions | |
| Nio2Service | back to summary |
|---|---|
| protected Nio2Service(PropertyResolver propertyResolver, IoHandler handler, AsynchronousChannelGroup group, ExecutorService resumeTasks) | |
| dispose | back to summary |
|---|---|
| public void dispose() | |
| getChannelGroup | back to summary |
|---|---|
| protected AsynchronousChannelGroup getChannelGroup() | |
| getExecutorService | back to summary |
|---|---|
| protected ExecutorService getExecutorService() | |
| getInnerCloseable | back to summary |
|---|---|
| protected Closeable getInnerCloseable() Implements abstract org.
| |
| getIoHandler | back to summary |
|---|---|
| public IoHandler getIoHandler() | |
| getIoServiceEventListener | back to summary |
|---|---|
| public IoServiceEventListener getIoServiceEventListener() Implements org.
| |
| getManagedSessions | back to summary |
|---|---|
| public Map Implements org. Doc from org. Returns the map of all sessions which are currently managed by this service. The key of map is the
| |
| sessionClosed | back to summary |
|---|---|
| public void sessionClosed(Nio2Session session) | |
| setIoServiceEventListener | back to summary |
|---|---|
| public void setIoServiceEventListener(IoServiceEventListener listener) Implements org.
| |
| setOption | back to summary |
|---|---|
| protected <T> boolean setOption(NetworkChannel socket, Property<?> property, SocketOption<T> option, T defaultValue) throws IOException | |
| setSocketOptions | back to summary |
|---|---|
protected <S extends NetworkChannel> S setSocketOptions(S socket) throws IOException
| |
| unmapSession | back to summary |
|---|---|
| protected void unmapSession(Long sessionId) | |