Class HttpJsonRegionCommitmentsStub (1.21.0)

public class HttpJsonRegionCommitmentsStub extends RegionCommitmentsStub

REST stub implementation for the RegionCommitments service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > RegionCommitmentsStub > HttpJsonRegionCommitmentsStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonRegionCommitmentsStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonRegionCommitmentsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(RegionCommitmentsStubSettings settings)

public static final HttpJsonRegionCommitmentsStub create(RegionCommitmentsStubSettings settings)
Parameter
NameDescription
settingsRegionCommitmentsStubSettings
Returns
TypeDescription
HttpJsonRegionCommitmentsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonRegionCommitmentsStub(RegionCommitmentsStubSettings settings, ClientContext clientContext)

protected HttpJsonRegionCommitmentsStub(RegionCommitmentsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRegionCommitmentsStub, 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
settingsRegionCommitmentsStubSettings
clientContextClientContext

HttpJsonRegionCommitmentsStub(RegionCommitmentsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRegionCommitmentsStub(RegionCommitmentsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonRegionCommitmentsStub, 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
settingsRegionCommitmentsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListRegionCommitmentsRequest,CommitmentAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListRegionCommitmentsRequest,CommitmentAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListRegionCommitmentsRequest,RegionCommitmentsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListRegionCommitmentsRequest,AggregatedListPagedResponse>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

getCallable()

public UnaryCallable<GetRegionCommitmentRequest,Commitment> getCallable()
Returns
TypeDescription
UnaryCallable<GetRegionCommitmentRequest,Commitment>
Overrides

insertCallable()

public UnaryCallable<InsertRegionCommitmentRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertRegionCommitmentRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertRegionCommitmentRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertRegionCommitmentRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListRegionCommitmentsRequest,CommitmentList> listCallable()
Returns
TypeDescription
UnaryCallable<ListRegionCommitmentsRequest,CommitmentList>
Overrides

listPagedCallable()

public UnaryCallable<ListRegionCommitmentsRequest,RegionCommitmentsClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRegionCommitmentsRequest,ListPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCallable()

public UnaryCallable<UpdateRegionCommitmentRequest,Operation> updateCallable()
Returns
TypeDescription
UnaryCallable<UpdateRegionCommitmentRequest,Operation>
Overrides

updateOperationCallable()

public OperationCallable<UpdateRegionCommitmentRequest,Operation,Operation> updateOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateRegionCommitmentRequest,Operation,Operation>
Overrides