Interface IoServiceListener

All Superinterfaces:
EventListener

public interface IoServiceListener extends EventListener
Listens to events related to an IoService.
  • Method Details

    • serviceActivated

      void serviceActivated(IoService service) throws Exception
      Invoked when a new service is activated by an IoService.
      Parameters:
      service - the IoService
      Throws:
      Exception - if an error occurred while the service is being activated
    • serviceIdle

      void serviceIdle(IoService service, IdleStatus idleStatus) throws Exception
      Invoked when a service is idle.
      Parameters:
      service - the IoService
      idleStatus - The idle status
      Throws:
      Exception - if an error occurred while the service is being idled
    • serviceDeactivated

      void serviceDeactivated(IoService service) throws Exception
      Invoked when a service is deactivated by an IoService.
      Parameters:
      service - the IoService
      Throws:
      Exception - if an error occurred while the service is being deactivated
    • sessionCreated

      void sessionCreated(IoSession session) throws Exception
      Invoked when a new session is created by an IoService.
      Parameters:
      session - the new session
      Throws:
      Exception - if an error occurred while the session is being created
    • sessionClosed

      void sessionClosed(IoSession session) throws Exception
      Invoked when a new session is closed by an IoService.
      Parameters:
      session - the new session
      Throws:
      Exception - if an error occurred while the session is being closed
    • sessionDestroyed

      void sessionDestroyed(IoSession session) throws Exception
      Invoked when a session is being destroyed by an IoService.
      Parameters:
      session - the session to be destroyed
      Throws:
      Exception - if an error occurred while the session is being destroyed