Class HttpJsonRegionCommitmentsStub (1.65.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonRegionCommitmentsStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonRegionCommitmentsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonRegionCommitmentsStub
Exceptions
Type Description
IOException

create(RegionCommitmentsStubSettings settings)

public static final HttpJsonRegionCommitmentsStub create(RegionCommitmentsStubSettings settings)
Parameter
Name Description
settings RegionCommitmentsStubSettings
Returns
Type Description
HttpJsonRegionCommitmentsStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings RegionCommitmentsStubSettings
clientContext ClientContext

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
Name Description
settings RegionCommitmentsStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

aggregatedListCallable()

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

aggregatedListPagedCallable()

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

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

close()

public final void close()
Overrides

getCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCallable()

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

updateOperationCallable()

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