Class GrpcSpannerStub (6.68.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
Name Description
clientContext ClientContext
Returns
Type Description
GrpcSpannerStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcSpannerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcSpannerStub
Exceptions
Type Description
IOException

create(SpannerStubSettings settings)

public static final GrpcSpannerStub create(SpannerStubSettings settings)
Parameter
Name Description
settings SpannerStubSettings
Returns
Type Description
GrpcSpannerStub
Exceptions
Type Description
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
Name Description
settings SpannerStubSettings
clientContext ClientContext

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
Name Description
settings SpannerStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

batchCreateSessionsCallable()

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

batchWriteCallable()

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

beginTransactionCallable()

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

close()

public final void close()
Overrides

commitCallable()

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

createSessionCallable()

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

deleteSessionCallable()

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

executeBatchDmlCallable()

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

executeSqlCallable()

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

executeStreamingSqlCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getSessionCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listSessionsCallable()

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

listSessionsPagedCallable()

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

partitionQueryCallable()

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

partitionReadCallable()

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

readCallable()

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

rollbackCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

streamingReadCallable()

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