Package com.google.cloud.spanner
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
-
Enum Constant Summary
Enum ConstantDescriptionTell the cursor to continue issuing callbacks when data is available.Tell the cursor you are done receiving results, even if there are more results sitting in the buffer.Tell the cursor to suspend all callbacks until application callsForwardingAsyncResultSet.resume()
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static AsyncResultSet.CallbackResponse[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
Tell the cursor to suspend all callbacks until application callsForwardingAsyncResultSet.resume()
. -
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 returningPAUSE
, but more clear, immediate, and idiomatic.It is legal to commit a transaction that owns this read before actually returning
DONE
.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-