public class HttpJsonSpannerStub extends SpannerStub
REST stub implementation for the Spanner service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonSpannerStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext | ClientContext |
Returns | |
---|---|
Type | Description |
HttpJsonSpannerStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonSpannerStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext | ClientContext |
callableFactory | HttpJsonStubCallableFactory |
Returns | |
---|---|
Type | Description |
HttpJsonSpannerStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(SpannerStubSettings settings)
public static final HttpJsonSpannerStub create(SpannerStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings | SpannerStubSettings |
Returns | |
---|---|
Type | Description |
HttpJsonSpannerStub |
Exceptions | |
---|---|
Type | Description |
IOException |
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns | |
---|---|
Type | Description |
List<ApiMethodDescriptor> |
Constructors
HttpJsonSpannerStub(SpannerStubSettings settings, ClientContext clientContext)
protected HttpJsonSpannerStub(SpannerStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonSpannerStub, 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 |
HttpJsonSpannerStub(SpannerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonSpannerStub(SpannerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonSpannerStub, 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 | HttpJsonStubCallableFactory |
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> |
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> |
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> |