Class AdapterGrpc.AdapterFutureStub (0.3.0)

public static final class AdapterGrpc.AdapterFutureStub extends AbstractFutureStub<AdapterGrpc.AdapterFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service Adapter.

Cloud Spanner Adapter API The Cloud Spanner Adapter service allows native drivers of supported database dialects to interact directly with Cloud Spanner by wrapping the underlying wire protocol used by the driver in a gRPC stream.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > AdapterGrpc.AdapterFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected AdapterGrpc.AdapterFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
AdapterGrpc.AdapterFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createSession(CreateSessionRequest request)

public ListenableFuture<Session> createSession(CreateSessionRequest request)

Creates a new session to be used for requests made by the adapter. A session identifies a specific incarnation of a database resource and is meant to be reused across many AdaptMessage calls.

Parameter
Name Description
request CreateSessionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Session>