Interface SpannerRpc

  • All Superinterfaces:
    com.google.cloud.ServiceRpc
    All Known Implementing Classes:
    GapicSpannerRpc

    @InternalApi
    public interface SpannerRpc
    extends com.google.cloud.ServiceRpc
    Abstracts remote calls to the Cloud Spanner service. Typically end-consumer code will never use this interface; it's main purpose is to abstract the implementation of the public Cloud Spanner API from the underlying transport mechanism.

    Each SpannerRPC instance is bound to a particular project and set of authorization credentials.

    The interface is currently defined in terms of the generated HTTP client model classes. This is purely for expedience; a future version of this interface is likely to be independent of transport to allow switching between gRPC and HTTP.