Interface IoService

All Superinterfaces:
AutoCloseable, Channel, Closeable, Closeable, IoServiceEventListenerManager
All Known Subinterfaces:
IoAcceptor, IoConnector
All Known Implementing Classes:
Nio2Acceptor, Nio2Connector, Nio2Service

public interface IoService extends Closeable, IoServiceEventListenerManager
  • Field Details

  • Method Details

    • getManagedSessions

      Map<Long,IoSession> getManagedSessions()
      Returns the map of all sessions which are currently managed by this service. The key of map is the ID of the session.
      Returns:
      the sessions. An empty collection if there's no session.