Enum AsyncResultSet.CallbackResponse

java.lang.Object
java.lang.Enum<AsyncResultSet.CallbackResponse>
com.google.cloud.spanner.AsyncResultSet.CallbackResponse
All Implemented Interfaces:
Serializable, Comparable<AsyncResultSet.CallbackResponse>
Enclosing interface:
AsyncResultSet

public static enum AsyncResultSet.CallbackResponse extends Enum<AsyncResultSet.CallbackResponse>
  • Enum Constant Details

    • CONTINUE

      public static final AsyncResultSet.CallbackResponse CONTINUE
      Tell the cursor to continue issuing callbacks when data is available. This is the standard "I'm ready for more" response. If cursor is not completely drained of all ready results the callback will be called again immediately.
    • PAUSE

      public static final AsyncResultSet.CallbackResponse PAUSE
      Tell the cursor to suspend all callbacks until application calls ForwardingAsyncResultSet.resume().
    • DONE

      public static final AsyncResultSet.CallbackResponse DONE
      Tell the cursor you are done receiving results, even if there are more results sitting in the buffer. Once you return DONE, you will receive no further callbacks.

      Approximately equivalent to calling ForwardingAsyncResultSet.cancel(), and then returning PAUSE, but more clear, immediate, and idiomatic.

      It is legal to commit a transaction that owns this read before actually returning DONE.

  • Method Details

    • values

      public static AsyncResultSet.CallbackResponse[] 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 AsyncResultSet.CallbackResponse 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