@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,
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.
|
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<CreateSessionRequest,Session> createSessionCallable()
createSessionCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<BatchCreateSessionsRequest,BatchCreateSessionsResponse> batchCreateSessionsCallable()
batchCreateSessionsCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<GetSessionRequest,Session> getSessionCallable()
getSessionCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<ListSessionsRequest,SpannerClient.ListSessionsPagedResponse> listSessionsPagedCallable()
listSessionsPagedCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<ListSessionsRequest,ListSessionsResponse> listSessionsCallable()
listSessionsCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<DeleteSessionRequest,Empty> deleteSessionCallable()
deleteSessionCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<ExecuteSqlRequest,ResultSet> executeSqlCallable()
executeSqlCallable
in class SpannerStub
public com.google.api.gax.rpc.ServerStreamingCallable<ExecuteSqlRequest,PartialResultSet> executeStreamingSqlCallable()
executeStreamingSqlCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> executeBatchDmlCallable()
executeBatchDmlCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<ReadRequest,ResultSet> readCallable()
readCallable
in class SpannerStub
public com.google.api.gax.rpc.ServerStreamingCallable<ReadRequest,PartialResultSet> streamingReadCallable()
streamingReadCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,Transaction> beginTransactionCallable()
beginTransactionCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<CommitRequest,CommitResponse> commitCallable()
commitCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<RollbackRequest,Empty> rollbackCallable()
rollbackCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,PartitionResponse> partitionQueryCallable()
partitionQueryCallable
in class SpannerStub
public com.google.api.gax.rpc.UnaryCallable<PartitionReadRequest,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.