Class HttpJsonSpannerStub (6.58.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonSpannerStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonSpannerStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonSpannerStub
Exceptions
TypeDescription
IOException

create(SpannerStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsSpannerStubSettings
clientContextClientContext

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
NameDescription
settingsSpannerStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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

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