Package com.google.spanner.adapter.v1
Class AdapterGrpc.AdapterBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<AdapterGrpc.AdapterBlockingStub>
com.google.spanner.adapter.v1.AdapterGrpc.AdapterBlockingStub
- Enclosing class:
- AdapterGrpc
public static final class AdapterGrpc.AdapterBlockingStub
extends io.grpc.stub.AbstractBlockingStub<AdapterGrpc.AdapterBlockingStub>
A stub to allow clients to do limited 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionadaptMessage(AdaptMessageRequest request) Handles a single message from the client and returns the result as a stream.protected AdapterGrpc.AdapterBlockingStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createSession(CreateSessionRequest request) Creates a new session to be used for requests made by the adapter.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected AdapterGrpc.AdapterBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<AdapterGrpc.AdapterBlockingStub>
-
createSession
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.
-
adaptMessage
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.
-