Enum Class Page.Outcome

java.lang.Object
java.lang.Enum<Page.Outcome>
com.priint.pubserverapi.query.Page.Outcome
All Implemented Interfaces:
Serializable, Comparable<Page.Outcome>, Constable
Enclosing class:
Page<T>

public static enum Page.Outcome extends Enum<Page.Outcome>
Describes how the current page was produced.
  • Enum Constant Details

    • COMPLETE

      public static final Page.Outcome COMPLETE
      The query filled the page or reached the end of the matching results without interruption. A non-null cursor indicates that further results are available.
    • UPSTREAM_UNAVAILABLE

      public static final Page.Outcome UPSTREAM_UNAVAILABLE
      An upstream read failed or timed out. The page contains any results collected before the failure. If a cursor is present, use it to retry from the interruption point.
  • Method Details

    • values

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

      public static Page.Outcome valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null