Enum MessageType

java.lang.Object
java.lang.Enum<MessageType>
org.teamapps.universaldb.cluster.network.MessageType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MessageType>, java.lang.constant.Constable

public enum MessageType
extends java.lang.Enum<MessageType>
  • Enum Constant Details

    • ENCRYPTION_INIT

      public static final MessageType ENCRYPTION_INIT
    • ENCRYPTION_INIT_RESPONSE

      public static final MessageType ENCRYPTION_INIT_RESPONSE
    • INITIAL_MESSAGE

      public static final MessageType INITIAL_MESSAGE
    • INITIAL_MESSAGE_RESPONSE

      public static final MessageType INITIAL_MESSAGE_RESPONSE
    • SCHEMA_UPDATE

      public static final MessageType SCHEMA_UPDATE
    • SYNCHRONIZE_TRANSACTIONS_REQUEST

      public static final MessageType SYNCHRONIZE_TRANSACTIONS_REQUEST
    • SYNCHRONIZE_TRANSACTIONS_RESPONSE

      public static final MessageType SYNCHRONIZE_TRANSACTIONS_RESPONSE
    • SYNCHRONIZE_TRANSACTIONS_FINISHED

      public static final MessageType SYNCHRONIZE_TRANSACTIONS_FINISHED
    • SYNCHRONIZE_TRANSACTIONS_STATUS

      public static final MessageType SYNCHRONIZE_TRANSACTIONS_STATUS
    • HEAD_ELECTION_PROPOSAL

      public static final MessageType HEAD_ELECTION_PROPOSAL
    • CONNECT_TO_HEAD_REQUEST

      public static final MessageType CONNECT_TO_HEAD_REQUEST
    • CONNECT_TO_HEAD_WAIT_RESPONSE

      public static final MessageType CONNECT_TO_HEAD_WAIT_RESPONSE
    • CONNECT_TO_HEAD_SUCCESS_RESPONSE

      public static final MessageType CONNECT_TO_HEAD_SUCCESS_RESPONSE
    • CLUSTER_NODE_STATUS_UPDATE

      public static final MessageType CLUSTER_NODE_STATUS_UPDATE
    • UNRESOLVED_TRANSACTION

      public static final MessageType UNRESOLVED_TRANSACTION
    • RESOLVED_TRANSACTION

      public static final MessageType RESOLVED_TRANSACTION
    • CLUSTER_NODE_STATUS_INFO

      public static final MessageType CLUSTER_NODE_STATUS_INFO
  • Method Details

    • values

      public static MessageType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MessageType 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
    • getById

      public static MessageType getById​(int messageId)
    • getMessageId

      public int getMessageId()