Class HttpJsonRegionSnapshotSettingsStub (1.105.0)

public class HttpJsonRegionSnapshotSettingsStub extends RegionSnapshotSettingsStub

REST stub implementation for the RegionSnapshotSettings service API.

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

Inheritance

java.lang.Object > RegionSnapshotSettingsStub > HttpJsonRegionSnapshotSettingsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(RegionSnapshotSettingsStubSettings settings)

public static final HttpJsonRegionSnapshotSettingsStub create(RegionSnapshotSettingsStubSettings settings)
Parameter
Name Description
settings RegionSnapshotSettingsStubSettings
Returns
Type Description
HttpJsonRegionSnapshotSettingsStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonRegionSnapshotSettingsStub(RegionSnapshotSettingsStubSettings settings, ClientContext clientContext)

protected HttpJsonRegionSnapshotSettingsStub(RegionSnapshotSettingsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRegionSnapshotSettingsStub, 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 RegionSnapshotSettingsStubSettings
clientContext ClientContext

HttpJsonRegionSnapshotSettingsStub(RegionSnapshotSettingsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRegionSnapshotSettingsStub(RegionSnapshotSettingsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonRegionSnapshotSettingsStub, 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 RegionSnapshotSettingsStubSettings
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

getCallable()

public UnaryCallable<GetRegionSnapshotSettingRequest,SnapshotSettings> getCallable()
Returns
Type Description
UnaryCallable<GetRegionSnapshotSettingRequest,SnapshotSettings>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

patchCallable()

public UnaryCallable<PatchRegionSnapshotSettingRequest,Operation> patchCallable()
Returns
Type Description
UnaryCallable<PatchRegionSnapshotSettingRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchRegionSnapshotSettingRequest,Operation,Operation> patchOperationCallable()
Returns
Type Description
OperationCallable<PatchRegionSnapshotSettingRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()