Class HttpJsonCloudRedisClusterStub (0.4.0)

public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub

REST stub implementation for the CloudRedisCluster service API.

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

Inheritance

java.lang.Object > CloudRedisClusterStub > HttpJsonCloudRedisClusterStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(CloudRedisClusterStubSettings settings)

public static final HttpJsonCloudRedisClusterStub create(CloudRedisClusterStubSettings settings)
Parameter
NameDescription
settingsCloudRedisClusterStubSettings
Returns
TypeDescription
HttpJsonCloudRedisClusterStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonCloudRedisClusterStub(CloudRedisClusterStubSettings settings, ClientContext clientContext)

protected HttpJsonCloudRedisClusterStub(CloudRedisClusterStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonCloudRedisClusterStub, 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
settingsCloudRedisClusterStubSettings
clientContextClientContext

HttpJsonCloudRedisClusterStub(CloudRedisClusterStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonCloudRedisClusterStub(CloudRedisClusterStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonCloudRedisClusterStub, 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
settingsCloudRedisClusterStubSettings
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

close()

public final void close()
Overrides

createClusterCallable()

public UnaryCallable<CreateClusterRequest,Operation> createClusterCallable()
Returns
TypeDescription
UnaryCallable<CreateClusterRequest,Operation>
Overrides

createClusterOperationCallable()

public OperationCallable<CreateClusterRequest,Cluster,Any> createClusterOperationCallable()
Returns
TypeDescription
OperationCallable<CreateClusterRequest,Cluster,Any>
Overrides

deleteClusterCallable()

public UnaryCallable<DeleteClusterRequest,Operation> deleteClusterCallable()
Returns
TypeDescription
UnaryCallable<DeleteClusterRequest,Operation>
Overrides

deleteClusterOperationCallable()

public OperationCallable<DeleteClusterRequest,Empty,Any> deleteClusterOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteClusterRequest,Empty,Any>
Overrides

getClusterCallable()

public UnaryCallable<GetClusterRequest,Cluster> getClusterCallable()
Returns
TypeDescription
UnaryCallable<GetClusterRequest,Cluster>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listClustersCallable()

public UnaryCallable<ListClustersRequest,ListClustersResponse> listClustersCallable()
Returns
TypeDescription
UnaryCallable<ListClustersRequest,ListClustersResponse>
Overrides

listClustersPagedCallable()

public UnaryCallable<ListClustersRequest,CloudRedisClusterClient.ListClustersPagedResponse> listClustersPagedCallable()
Returns
TypeDescription
UnaryCallable<ListClustersRequest,ListClustersPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,CloudRedisClusterClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateClusterCallable()

public UnaryCallable<UpdateClusterRequest,Operation> updateClusterCallable()
Returns
TypeDescription
UnaryCallable<UpdateClusterRequest,Operation>
Overrides

updateClusterOperationCallable()

public OperationCallable<UpdateClusterRequest,Cluster,Any> updateClusterOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateClusterRequest,Cluster,Any>
Overrides