Enum DecodingState

java.lang.Object
java.lang.Enum<DecodingState>
com.couchbase.client.core.endpoint.DecodingState
All Implemented Interfaces:
Serializable, Comparable<DecodingState>, java.lang.constant.Constable

public enum DecodingState
extends Enum<DecodingState>
Describes the states of the decoding process. This is used internally by the handler implementations to signal their current decoding state. It has impact on which actions need to be performed in each state.
Since:
1.0
Author:
Michael Nitschinger
  • Enum Constant Details

    • INITIAL

      public static final DecodingState INITIAL
      Decoding is not currently taking place.
    • STARTED

      public static final DecodingState STARTED
      Decoding has started and is currently taking place.
    • FINISHED

      public static final DecodingState FINISHED
      Decoding is finished.
  • Method Details

    • values

      public static DecodingState[] 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 DecodingState valueOf​(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null