Interface AdapterGrpc.AsyncService (0.3.0)

public static interface AdapterGrpc.AsyncService

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.

Methods

adaptMessage(AdaptMessageRequest request, StreamObserver<AdaptMessageResponse> responseObserver)

public default void adaptMessage(AdaptMessageRequest request, StreamObserver<AdaptMessageResponse> responseObserver)

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.

Parameters
Name Description
request AdaptMessageRequest
responseObserver io.grpc.stub.StreamObserver<AdaptMessageResponse>

createSession(CreateSessionRequest request, StreamObserver<Session> responseObserver)

public default void createSession(CreateSessionRequest request, StreamObserver<Session> responseObserver)

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.

Parameters
Name Description
request CreateSessionRequest
responseObserver io.grpc.stub.StreamObserver<Session>