Class AdapterGrpc.AdapterBlockingV2Stub (0.3.0)

public static final class AdapterGrpc.AdapterBlockingV2Stub extends AbstractBlockingStub<AdapterGrpc.AdapterBlockingV2Stub>

A stub to allow clients to do synchronous 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.AbstractBlockingStub > AdapterGrpc.AdapterBlockingV2Stub

Methods

adaptMessage(AdaptMessageRequest request)

public BlockingClientCall<?,AdaptMessageResponse> adaptMessage(AdaptMessageRequest request)

Handles a single message from the client and returns the result as a stream. The server will interpret the message frame and respond with message frames to the client.

Parameter
Name Description
request AdaptMessageRequest
Returns
Type Description
io.grpc.stub.BlockingClientCall<?,AdaptMessageResponse>

build(Channel channel, CallOptions callOptions)

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

createSession(CreateSessionRequest request)

public 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
Session