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.
Inherited Members
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)
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
batchCreateSessionsCallable()
public UnaryCallable<BatchCreateSessionsRequest,BatchCreateSessionsResponse> batchCreateSessionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<BatchCreateSessionsRequest,BatchCreateSessionsResponse> |
batchWriteCallable()
public ServerStreamingCallable<BatchWriteRequest,BatchWriteResponse> batchWriteCallable()
Returns | |
---|---|
Type | Description |
ServerStreamingCallable<BatchWriteRequest,BatchWriteResponse> |
beginTransactionCallable()
public UnaryCallable<BeginTransactionRequest,Transaction> beginTransactionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<BeginTransactionRequest,Transaction> |
close()
public final void close()
commitCallable()
public UnaryCallable<CommitRequest,CommitResponse> commitCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CommitRequest,CommitResponse> |
createSessionCallable()
public UnaryCallable<CreateSessionRequest,Session> createSessionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateSessionRequest,Session> |
deleteSessionCallable()
public UnaryCallable<DeleteSessionRequest,Empty> deleteSessionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteSessionRequest,Empty> |
executeBatchDmlCallable()
public UnaryCallable<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> executeBatchDmlCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> |
executeSqlCallable()
public UnaryCallable<ExecuteSqlRequest,ResultSet> executeSqlCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ExecuteSqlRequest,ResultSet> |
executeStreamingSqlCallable()
public ServerStreamingCallable<ExecuteSqlRequest,PartialResultSet> executeStreamingSqlCallable()
Returns | |
---|---|
Type | Description |
ServerStreamingCallable<ExecuteSqlRequest,PartialResultSet> |
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns | |
---|---|
Type | Description |
GrpcOperationsStub |
getSessionCallable()
public UnaryCallable<GetSessionRequest,Session> getSessionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSessionRequest,Session> |
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> |
listSessionsPagedCallable()
public UnaryCallable<ListSessionsRequest,SpannerClient.ListSessionsPagedResponse> listSessionsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSessionsRequest,ListSessionsPagedResponse> |
partitionQueryCallable()
public UnaryCallable<PartitionQueryRequest,PartitionResponse> partitionQueryCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<PartitionQueryRequest,PartitionResponse> |
partitionReadCallable()
public UnaryCallable<PartitionReadRequest,PartitionResponse> partitionReadCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<PartitionReadRequest,PartitionResponse> |
readCallable()
public UnaryCallable<ReadRequest,ResultSet> readCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ReadRequest,ResultSet> |
rollbackCallable()
public UnaryCallable<RollbackRequest,Empty> rollbackCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<RollbackRequest,Empty> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
streamingReadCallable()
public ServerStreamingCallable<ReadRequest,PartialResultSet> streamingReadCallable()
Returns | |
---|---|
Type | Description |
ServerStreamingCallable<ReadRequest,PartialResultSet> |