Interface AgentConnection.Handle

All Known Implementing Classes:
AgentSocket
Enclosing class:
AgentConnection

static interface AgentConnection.Handle
One attempt's socket, as the state machine sees it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    closeAttempt(int code, String reason)
    Closes the attempt: the closing handshake when open, a forced close otherwise.
    boolean
     
  • Method Details

    • closeAttempt

      void closeAttempt(int code, String reason)
      Closes the attempt: the closing handshake when open, a forced close otherwise.
      Parameters:
      code - the close code
      reason - the close reason
    • sendText

      boolean sendText(String text)
      Parameters:
      text - the text frame
      Returns:
      whether it was handed to an open socket