Interface ConnectionManager

All Known Implementing Classes:
NIONetworkConnectionManager, WebSocketConnectionManager

public interface ConnectionManager
a server for a specific protocol
Author:
hendrik
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close​(Object internalChannel)
    closes a channel
    void
    shuts the server down
    boolean
    was the server shutdown?
    void
    send​(Object internalChannel, Message msg, boolean isPerceptionRequired)
    sends a message
  • Method Details

    • finish

      void finish()
      shuts the server down
    • isFinished

      boolean isFinished()
      was the server shutdown?
      Returns:
      true, if the server was shut down; false otherwise
    • send

      void send(Object internalChannel, Message msg, boolean isPerceptionRequired)
      sends a message
      Parameters:
      internalChannel - channel to send the message to
      msg - message to send
      isPerceptionRequired - is the next perception unskipable?
    • close

      void close(Object internalChannel)
      closes a channel
      Parameters:
      internalChannel - channel to close