@Generated(value="by gapic-generator") @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,
ClientContext clientContext)
Constructs an instance of GrpcSpannerStub, using the given settings.
|
protected |
GrpcSpannerStub(SpannerStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcSpannerStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
UnaryCallable<com.google.spanner.v1.BeginTransactionRequest,com.google.spanner.v1.Transaction> |
beginTransactionCallable() |
void |
close() |
UnaryCallable<com.google.spanner.v1.CommitRequest,com.google.spanner.v1.CommitResponse> |
commitCallable() |
static GrpcSpannerStub |
create(ClientContext clientContext) |
static GrpcSpannerStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcSpannerStub |
create(SpannerStubSettings settings) |
UnaryCallable<com.google.spanner.v1.CreateSessionRequest,com.google.spanner.v1.Session> |
createSessionCallable() |
UnaryCallable<com.google.spanner.v1.DeleteSessionRequest,Empty> |
deleteSessionCallable() |
UnaryCallable<com.google.spanner.v1.ExecuteBatchDmlRequest,com.google.spanner.v1.ExecuteBatchDmlResponse> |
executeBatchDmlCallable() |
UnaryCallable<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.ResultSet> |
executeSqlCallable() |
ServerStreamingCallable<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.PartialResultSet> |
executeStreamingSqlCallable() |
UnaryCallable<com.google.spanner.v1.GetSessionRequest,com.google.spanner.v1.Session> |
getSessionCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.spanner.v1.ListSessionsRequest,com.google.spanner.v1.ListSessionsResponse> |
listSessionsCallable() |
UnaryCallable<com.google.spanner.v1.ListSessionsRequest,SpannerClient.ListSessionsPagedResponse> |
listSessionsPagedCallable() |
UnaryCallable<com.google.spanner.v1.PartitionQueryRequest,com.google.spanner.v1.PartitionResponse> |
partitionQueryCallable() |
UnaryCallable<com.google.spanner.v1.PartitionReadRequest,com.google.spanner.v1.PartitionResponse> |
partitionReadCallable() |
UnaryCallable<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.ResultSet> |
readCallable() |
UnaryCallable<com.google.spanner.v1.RollbackRequest,Empty> |
rollbackCallable() |
void |
shutdown() |
void |
shutdownNow() |
ServerStreamingCallable<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.PartialResultSet> |
streamingReadCallable() |
protected GrpcSpannerStub(SpannerStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcSpannerStub(SpannerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcSpannerStub create(SpannerStubSettings settings) throws IOException
IOException
public static final GrpcSpannerStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcSpannerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public UnaryCallable<com.google.spanner.v1.CreateSessionRequest,com.google.spanner.v1.Session> createSessionCallable()
createSessionCallable
in class SpannerStub
public UnaryCallable<com.google.spanner.v1.GetSessionRequest,com.google.spanner.v1.Session> getSessionCallable()
getSessionCallable
in class SpannerStub
public UnaryCallable<com.google.spanner.v1.ListSessionsRequest,SpannerClient.ListSessionsPagedResponse> listSessionsPagedCallable()
listSessionsPagedCallable
in class SpannerStub
public UnaryCallable<com.google.spanner.v1.ListSessionsRequest,com.google.spanner.v1.ListSessionsResponse> listSessionsCallable()
listSessionsCallable
in class SpannerStub
public UnaryCallable<com.google.spanner.v1.DeleteSessionRequest,Empty> deleteSessionCallable()
deleteSessionCallable
in class SpannerStub
public UnaryCallable<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.ResultSet> executeSqlCallable()
executeSqlCallable
in class SpannerStub
public ServerStreamingCallable<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.PartialResultSet> executeStreamingSqlCallable()
executeStreamingSqlCallable
in class SpannerStub
public UnaryCallable<com.google.spanner.v1.ExecuteBatchDmlRequest,com.google.spanner.v1.ExecuteBatchDmlResponse> executeBatchDmlCallable()
executeBatchDmlCallable
in class SpannerStub
public UnaryCallable<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.ResultSet> readCallable()
readCallable
in class SpannerStub
public ServerStreamingCallable<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.PartialResultSet> streamingReadCallable()
streamingReadCallable
in class SpannerStub
public UnaryCallable<com.google.spanner.v1.BeginTransactionRequest,com.google.spanner.v1.Transaction> beginTransactionCallable()
beginTransactionCallable
in class SpannerStub
public UnaryCallable<com.google.spanner.v1.CommitRequest,com.google.spanner.v1.CommitResponse> commitCallable()
commitCallable
in class SpannerStub
public UnaryCallable<com.google.spanner.v1.RollbackRequest,Empty> rollbackCallable()
rollbackCallable
in class SpannerStub
public UnaryCallable<com.google.spanner.v1.PartitionQueryRequest,com.google.spanner.v1.PartitionResponse> partitionQueryCallable()
partitionQueryCallable
in class SpannerStub
public 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 © 2019 Google LLC. All rights reserved.