Interface CloseReason.CloseCode

All Known Implementing Classes:
CloseReason.CloseCodes
Enclosing class:
CloseReason

public static interface CloseReason.CloseCode
A marker interface for the close codes. This interface may be implemented by enumerations that contain web socket close codes, for example enumerations that contain all the in use close codes as of web socket 1.0, or an enumeration that contains close codes that are currently reserved for special use by the web socket specification.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the code number, for example the integer '1000' for normal closure.
  • Method Details

    • getCode

      int getCode()
      Returns the code number, for example the integer '1000' for normal closure.
      Returns:
      the code number