Class ForwardingAsyncResultSet (2.24.1)

public class ForwardingAsyncResultSet extends ForwardingResultSet implements AsyncResultSet

Inheritance

java.lang.Object > ForwardingStructReader > ForwardingResultSet > ForwardingAsyncResultSet

Implements

AsyncResultSet

Constructors

ForwardingAsyncResultSet(AsyncResultSet arg0)

public ForwardingAsyncResultSet(AsyncResultSet arg0)
Parameter
Name Description
arg0 AsyncResultSet

Methods

<T>toList(Function<StructReader,T> arg0)

public List<T> <T>toList(Function<StructReader,T> arg0)
Parameter
Name Description
arg0 com.google.common.base.Function<StructReader,T>
Returns
Type Description
List<T>
Exceptions
Type Description
SpannerException

<T>toListAsync(Function<StructReader,T> arg0, Executor arg1)

public ApiFuture<List<T>> <T>toListAsync(Function<StructReader,T> arg0, Executor arg1)
Parameters
Name Description
arg0 com.google.common.base.Function<StructReader,T>
arg1 Executor
Returns
Type Description
ApiFuture<List<T>>

cancel()

public void cancel()

resume()

public void resume()

setCallback(Executor arg0, AsyncResultSet.ReadyCallback arg1)

public ApiFuture<Void> setCallback(Executor arg0, AsyncResultSet.ReadyCallback arg1)
Parameters
Name Description
arg0 Executor
arg1 ReadyCallback
Returns
Type Description
ApiFuture<Void>

tryNext()

public AsyncResultSet.CursorState tryNext()
Returns
Type Description
CursorState
Exceptions
Type Description
SpannerException