@Generated(value="by gapic-generator-java") 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.
|
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 GrpcOperationsStub getOperationsStub()
public UnaryCallable<CreateSessionRequest,Session> createSessionCallable()
createSessionCallable
in class SpannerStub
public UnaryCallable<BatchCreateSessionsRequest,BatchCreateSessionsResponse> batchCreateSessionsCallable()
batchCreateSessionsCallable
in class SpannerStub
public UnaryCallable<GetSessionRequest,Session> getSessionCallable()
getSessionCallable
in class SpannerStub
public UnaryCallable<ListSessionsRequest,ListSessionsResponse> listSessionsCallable()
listSessionsCallable
in class SpannerStub
public UnaryCallable<ListSessionsRequest,SpannerClient.ListSessionsPagedResponse> listSessionsPagedCallable()
listSessionsPagedCallable
in class SpannerStub
public UnaryCallable<DeleteSessionRequest,Empty> deleteSessionCallable()
deleteSessionCallable
in class SpannerStub
public UnaryCallable<ExecuteSqlRequest,ResultSet> executeSqlCallable()
executeSqlCallable
in class SpannerStub
public ServerStreamingCallable<ExecuteSqlRequest,PartialResultSet> executeStreamingSqlCallable()
executeStreamingSqlCallable
in class SpannerStub
public UnaryCallable<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> executeBatchDmlCallable()
executeBatchDmlCallable
in class SpannerStub
public UnaryCallable<ReadRequest,ResultSet> readCallable()
readCallable
in class SpannerStub
public ServerStreamingCallable<ReadRequest,PartialResultSet> streamingReadCallable()
streamingReadCallable
in class SpannerStub
public UnaryCallable<BeginTransactionRequest,Transaction> beginTransactionCallable()
beginTransactionCallable
in class SpannerStub
public UnaryCallable<CommitRequest,CommitResponse> commitCallable()
commitCallable
in class SpannerStub
public UnaryCallable<RollbackRequest,Empty> rollbackCallable()
rollbackCallable
in class SpannerStub
public UnaryCallable<PartitionQueryRequest,PartitionResponse> partitionQueryCallable()
partitionQueryCallable
in class SpannerStub
public 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 © 2022 Google LLC. All rights reserved.