Class AdapterGrpc.AdapterFutureStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<AdapterGrpc.AdapterFutureStub>
com.google.spanner.adapter.v1.AdapterGrpc.AdapterFutureStub
Enclosing class:
AdapterGrpc

public static final class AdapterGrpc.AdapterFutureStub extends io.grpc.stub.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.
 
  • 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 Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    com.google.common.util.concurrent.ListenableFuture<Session>
    Creates a new session to be used for requests made by the adapter.

    Methods inherited from class io.grpc.stub.AbstractFutureStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected AdapterGrpc.AdapterFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<AdapterGrpc.AdapterFutureStub>
    • createSession

      public com.google.common.util.concurrent.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.