public static enum AsyncResultSet.CallbackResponse extends Enum<AsyncResultSet.CallbackResponse>
Enum Constant and Description |
---|
CONTINUE
Tell the cursor to continue issuing callbacks when data is available.
|
DONE
Tell the cursor you are done receiving results, even if there are more results sitting in the
buffer.
|
PAUSE
Tell the cursor to suspend all callbacks until application calls
RowCursor#resume() . |
Modifier and Type | Method and Description |
---|---|
static AsyncResultSet.CallbackResponse |
valueOf(String name)
Returns 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.
|
public static final AsyncResultSet.CallbackResponse CONTINUE
public static final AsyncResultSet.CallbackResponse PAUSE
RowCursor#resume()
.public static final AsyncResultSet.CallbackResponse DONE
Approximately equivalent to calling RowCursor#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
.
public static AsyncResultSet.CallbackResponse[] values()
for (AsyncResultSet.CallbackResponse c : AsyncResultSet.CallbackResponse.values()) System.out.println(c);
public static AsyncResultSet.CallbackResponse valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022 Google LLC. All rights reserved.