@Generated(value="by GAPIC v0.0.5") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcSpannerStub extends SpannerStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcSpannerStub(SpannerStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcSpannerStub, using the given settings.
|
protected |
GrpcSpannerStub(SpannerStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcSpannerStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.BeginTransactionRequest,com.google.spanner.v1.Transaction> |
beginTransactionCallable() |
void |
close() |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.CommitRequest,com.google.spanner.v1.CommitResponse> |
commitCallable() |
static GrpcSpannerStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcSpannerStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) |
static GrpcSpannerStub |
create(SpannerStubSettings settings) |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.CreateSessionRequest,com.google.spanner.v1.Session> |
createSessionCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.DeleteSessionRequest,com.google.protobuf.Empty> |
deleteSessionCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.ResultSet> |
executeSqlCallable() |
com.google.api.gax.rpc.ServerStreamingCallable<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.PartialResultSet> |
executeStreamingSqlCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.GetSessionRequest,com.google.spanner.v1.Session> |
getSessionCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.ListSessionsRequest,com.google.spanner.v1.ListSessionsResponse> |
listSessionsCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.ListSessionsRequest,SpannerClient.ListSessionsPagedResponse> |
listSessionsPagedCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.PartitionQueryRequest,com.google.spanner.v1.PartitionResponse> |
partitionQueryCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.PartitionReadRequest,com.google.spanner.v1.PartitionResponse> |
partitionReadCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.ResultSet> |
readCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.RollbackRequest,com.google.protobuf.Empty> |
rollbackCallable() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.ServerStreamingCallable<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.PartialResultSet> |
streamingReadCallable() |
protected GrpcSpannerStub(SpannerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
protected GrpcSpannerStub(SpannerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcSpannerStub create(SpannerStubSettings settings) throws IOException
IOException
public static final GrpcSpannerStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
public static final GrpcSpannerStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.CreateSessionRequest,com.google.spanner.v1.Session> createSessionCallable()
createSessionCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.GetSessionRequest,com.google.spanner.v1.Session> getSessionCallable()
getSessionCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.ListSessionsRequest,SpannerClient.ListSessionsPagedResponse> listSessionsPagedCallable()
listSessionsPagedCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.ListSessionsRequest,com.google.spanner.v1.ListSessionsResponse> listSessionsCallable()
listSessionsCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.DeleteSessionRequest,com.google.protobuf.Empty> deleteSessionCallable()
deleteSessionCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.ResultSet> executeSqlCallable()
executeSqlCallable
in class SpannerStub
public com.google.api.gax.rpc.ServerStreamingCallable<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.PartialResultSet> executeStreamingSqlCallable()
executeStreamingSqlCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.ResultSet> readCallable()
readCallable
in class SpannerStub
public com.google.api.gax.rpc.ServerStreamingCallable<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.PartialResultSet> streamingReadCallable()
streamingReadCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.BeginTransactionRequest,com.google.spanner.v1.Transaction> beginTransactionCallable()
beginTransactionCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.CommitRequest,com.google.spanner.v1.CommitResponse> commitCallable()
commitCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.RollbackRequest,com.google.protobuf.Empty> rollbackCallable()
rollbackCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.PartitionQueryRequest,com.google.spanner.v1.PartitionResponse> partitionQueryCallable()
partitionQueryCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<com.google.spanner.v1.PartitionReadRequest,com.google.spanner.v1.PartitionResponse> partitionReadCallable()
partitionReadCallable
in class SpannerStub
public final void close()
close
in interface AutoCloseable
close
in class SpannerStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2018 Google. All rights reserved.