Interface AdapterGrpc.AsyncService

All Known Implementing Classes:
AdapterGrpc.AdapterImplBase
Enclosing class:
AdapterGrpc

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.
 
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    adaptMessage(AdaptMessageRequest request, io.grpc.stub.StreamObserver<AdaptMessageResponse> responseObserver)
    Handles a single message from the client and returns the result as a stream.
    default void
    createSession(CreateSessionRequest request, io.grpc.stub.StreamObserver<Session> responseObserver)
    Creates a new session to be used for requests made by the adapter.
  • Method Details

    • createSession

      default void createSession(CreateSessionRequest request, io.grpc.stub.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.
       
    • adaptMessage

      default void adaptMessage(AdaptMessageRequest request, io.grpc.stub.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.