Class HttpJsonSpannerStub (6.79.0)

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.

Inheritance

java.lang.Object > SpannerStub > HttpJsonSpannerStub

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>
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

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