Class HttpJsonRegionsServiceStub (0.5.0)

public class HttpJsonRegionsServiceStub extends RegionsServiceStub

REST stub implementation for the RegionsService service API.

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

Inheritance

java.lang.Object > RegionsServiceStub > HttpJsonRegionsServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonRegionsServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonRegionsServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(RegionsServiceStubSettings settings)

public static final HttpJsonRegionsServiceStub create(RegionsServiceStubSettings settings)
Parameter
Name Description
settings RegionsServiceStubSettings
Returns
Type Description
HttpJsonRegionsServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonRegionsServiceStub(RegionsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonRegionsServiceStub(RegionsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRegionsServiceStub, 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 RegionsServiceStubSettings
clientContext ClientContext

HttpJsonRegionsServiceStub(RegionsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRegionsServiceStub(RegionsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonRegionsServiceStub, 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 RegionsServiceStubSettings
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

close()

public final void close()
Overrides

createRegionCallable()

public UnaryCallable<CreateRegionRequest,Region> createRegionCallable()
Returns
Type Description
UnaryCallable<CreateRegionRequest,Region>
Overrides

deleteRegionCallable()

public UnaryCallable<DeleteRegionRequest,Empty> deleteRegionCallable()
Returns
Type Description
UnaryCallable<DeleteRegionRequest,Empty>
Overrides

getRegionCallable()

public UnaryCallable<GetRegionRequest,Region> getRegionCallable()
Returns
Type Description
UnaryCallable<GetRegionRequest,Region>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listRegionsCallable()

public UnaryCallable<ListRegionsRequest,ListRegionsResponse> listRegionsCallable()
Returns
Type Description
UnaryCallable<ListRegionsRequest,ListRegionsResponse>
Overrides

listRegionsPagedCallable()

public UnaryCallable<ListRegionsRequest,RegionsServiceClient.ListRegionsPagedResponse> listRegionsPagedCallable()
Returns
Type Description
UnaryCallable<ListRegionsRequest,ListRegionsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateRegionCallable()

public UnaryCallable<UpdateRegionRequest,Region> updateRegionCallable()
Returns
Type Description
UnaryCallable<UpdateRegionRequest,Region>
Overrides