Enum Callback.StatusCode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Callback.StatusCode>
    Enclosing interface:
    Callback

    public static enum Callback.StatusCode
    extends java.lang.Enum<Callback.StatusCode>
    Defines the various connection states
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CONNECTED
      Connected with the server, establishing a secure channel
      CONNECTING
      Trying to connect with the server
      DISCONNECTED
      Disconnected from the server
      LOOKUP
      Performing DNS lookup of the host name
      RCV_HB_REQ
      Client received a Heartbeat request from the server
      RCV_HB_RES
      Client received a Hearbeat response from the server
      READYTOLOGON
      The secure channel with the server is established and you can now send the logon message
      SND_HB_REQ
      Client sent a Heartbeat request to the server
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Callback.StatusCode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Callback.StatusCode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • LOOKUP

        public static final Callback.StatusCode LOOKUP
        Performing DNS lookup of the host name
      • CONNECTING

        public static final Callback.StatusCode CONNECTING
        Trying to connect with the server
      • CONNECTED

        public static final Callback.StatusCode CONNECTED
        Connected with the server, establishing a secure channel
      • DISCONNECTED

        public static final Callback.StatusCode DISCONNECTED
        Disconnected from the server
      • READYTOLOGON

        public static final Callback.StatusCode READYTOLOGON
        The secure channel with the server is established and you can now send the logon message
      • SND_HB_REQ

        public static final Callback.StatusCode SND_HB_REQ
        Client sent a Heartbeat request to the server
      • RCV_HB_REQ

        public static final Callback.StatusCode RCV_HB_REQ
        Client received a Heartbeat request from the server
      • RCV_HB_RES

        public static final Callback.StatusCode RCV_HB_RES
        Client received a Hearbeat response from the server
    • Method Detail

      • values

        public static Callback.StatusCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Callback.StatusCode c : Callback.StatusCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Callback.StatusCode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null