Class GrpcSpannerStub (6.53.0)

public class GrpcSpannerStub extends SpannerStub

gRPC stub implementation for the Spanner service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > SpannerStub > GrpcSpannerStub

Static Methods

create(ClientContext clientContext)

public static final GrpcSpannerStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcSpannerStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcSpannerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcSpannerStub
Exceptions
TypeDescription
IOException

create(SpannerStubSettings settings)

public static final GrpcSpannerStub create(SpannerStubSettings settings)
Parameter
NameDescription
settingsSpannerStubSettings
Returns
TypeDescription
GrpcSpannerStub
Exceptions
TypeDescription
IOException

Constructors

GrpcSpannerStub(SpannerStubSettings settings, ClientContext clientContext)

protected GrpcSpannerStub(SpannerStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcSpannerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsSpannerStubSettings
clientContextClientContext

GrpcSpannerStub(SpannerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcSpannerStub(SpannerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcSpannerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsSpannerStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

batchCreateSessionsCallable()

public UnaryCallable<BatchCreateSessionsRequest,BatchCreateSessionsResponse> batchCreateSessionsCallable()
Returns
TypeDescription
UnaryCallable<BatchCreateSessionsRequest,BatchCreateSessionsResponse>
Overrides

batchWriteCallable()

public ServerStreamingCallable<BatchWriteRequest,BatchWriteResponse> batchWriteCallable()
Returns
TypeDescription
ServerStreamingCallable<BatchWriteRequest,BatchWriteResponse>
Overrides

beginTransactionCallable()

public UnaryCallable<BeginTransactionRequest,Transaction> beginTransactionCallable()
Returns
TypeDescription
UnaryCallable<BeginTransactionRequest,Transaction>
Overrides

close()

public final void close()
Overrides

commitCallable()

public UnaryCallable<CommitRequest,CommitResponse> commitCallable()
Returns
TypeDescription
UnaryCallable<CommitRequest,CommitResponse>
Overrides

createSessionCallable()

public UnaryCallable<CreateSessionRequest,Session> createSessionCallable()
Returns
TypeDescription
UnaryCallable<CreateSessionRequest,Session>
Overrides

deleteSessionCallable()

public UnaryCallable<DeleteSessionRequest,Empty> deleteSessionCallable()
Returns
TypeDescription
UnaryCallable<DeleteSessionRequest,Empty>
Overrides

executeBatchDmlCallable()

public UnaryCallable<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> executeBatchDmlCallable()
Returns
TypeDescription
UnaryCallable<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse>
Overrides

executeSqlCallable()

public UnaryCallable<ExecuteSqlRequest,ResultSet> executeSqlCallable()
Returns
TypeDescription
UnaryCallable<ExecuteSqlRequest,ResultSet>
Overrides

executeStreamingSqlCallable()

public ServerStreamingCallable<ExecuteSqlRequest,PartialResultSet> executeStreamingSqlCallable()
Returns
TypeDescription
ServerStreamingCallable<ExecuteSqlRequest,PartialResultSet>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getSessionCallable()

public UnaryCallable<GetSessionRequest,Session> getSessionCallable()
Returns
TypeDescription
UnaryCallable<GetSessionRequest,Session>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listSessionsCallable()

public UnaryCallable<ListSessionsRequest,ListSessionsResponse> listSessionsCallable()
Returns
TypeDescription
UnaryCallable<ListSessionsRequest,ListSessionsResponse>
Overrides

listSessionsPagedCallable()

public UnaryCallable<ListSessionsRequest,SpannerClient.ListSessionsPagedResponse> listSessionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListSessionsRequest,ListSessionsPagedResponse>
Overrides

partitionQueryCallable()

public UnaryCallable<PartitionQueryRequest,PartitionResponse> partitionQueryCallable()
Returns
TypeDescription
UnaryCallable<PartitionQueryRequest,PartitionResponse>
Overrides

partitionReadCallable()

public UnaryCallable<PartitionReadRequest,PartitionResponse> partitionReadCallable()
Returns
TypeDescription
UnaryCallable<PartitionReadRequest,PartitionResponse>
Overrides

readCallable()

public UnaryCallable<ReadRequest,ResultSet> readCallable()
Returns
TypeDescription
UnaryCallable<ReadRequest,ResultSet>
Overrides

rollbackCallable()

public UnaryCallable<RollbackRequest,Empty> rollbackCallable()
Returns
TypeDescription
UnaryCallable<RollbackRequest,Empty>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

streamingReadCallable()

public ServerStreamingCallable<ReadRequest,PartialResultSet> streamingReadCallable()
Returns
TypeDescription
ServerStreamingCallable<ReadRequest,PartialResultSet>
Overrides