Class GrpcCloudRedisClusterStub (0.8.0)

public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub

gRPC stub implementation for the CloudRedisCluster service API.

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

Inheritance

java.lang.Object > CloudRedisClusterStub > GrpcCloudRedisClusterStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcCloudRedisClusterStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcCloudRedisClusterStub
Exceptions
TypeDescription
IOException

create(CloudRedisClusterStubSettings settings)

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

Constructors

GrpcCloudRedisClusterStub(CloudRedisClusterStubSettings settings, ClientContext clientContext)

protected GrpcCloudRedisClusterStub(CloudRedisClusterStubSettings settings, ClientContext clientContext)

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

GrpcCloudRedisClusterStub(CloudRedisClusterStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCloudRedisClusterStub(CloudRedisClusterStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcCloudRedisClusterStub, 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
callableFactoryGrpcStubCallableFactory

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

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
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