public class GrpcCloudRedisStub extends CloudRedisStub
gRPC stub implementation for the CloudRedis service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcCloudRedisStub create(ClientContext clientContext)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcCloudRedisStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
create(CloudRedisStubSettings settings)
public static final GrpcCloudRedisStub create(CloudRedisStubSettings settings)
Constructors
GrpcCloudRedisStub(CloudRedisStubSettings settings, ClientContext clientContext)
protected GrpcCloudRedisStub(CloudRedisStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcCloudRedisStub, 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.
GrpcCloudRedisStub(CloudRedisStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcCloudRedisStub(CloudRedisStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcCloudRedisStub, 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.
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
close()
public final void close()
Overrides
createInstanceCallable()
public UnaryCallable<CreateInstanceRequest,Operation> createInstanceCallable()
Overrides
createInstanceOperationCallable()
public OperationCallable<CreateInstanceRequest,Instance,OperationMetadata> createInstanceOperationCallable()
Overrides
deleteInstanceCallable()
public UnaryCallable<DeleteInstanceRequest,Operation> deleteInstanceCallable()
Overrides
deleteInstanceOperationCallable()
public OperationCallable<DeleteInstanceRequest,Empty,OperationMetadata> deleteInstanceOperationCallable()
Overrides
exportInstanceCallable()
public UnaryCallable<ExportInstanceRequest,Operation> exportInstanceCallable()
Overrides
exportInstanceOperationCallable()
public OperationCallable<ExportInstanceRequest,Instance,OperationMetadata> exportInstanceOperationCallable()
Overrides
failoverInstanceCallable()
public UnaryCallable<FailoverInstanceRequest,Operation> failoverInstanceCallable()
Overrides
failoverInstanceOperationCallable()
public OperationCallable<FailoverInstanceRequest,Instance,OperationMetadata> failoverInstanceOperationCallable()
Overrides
getInstanceAuthStringCallable()
public UnaryCallable<GetInstanceAuthStringRequest,InstanceAuthString> getInstanceAuthStringCallable()
Overrides
getInstanceCallable()
public UnaryCallable<GetInstanceRequest,Instance> getInstanceCallable()
Overrides
getLocationCallable()
public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns |
---|
Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> | |
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Overrides
importInstanceCallable()
public UnaryCallable<ImportInstanceRequest,Operation> importInstanceCallable()
Overrides
importInstanceOperationCallable()
public OperationCallable<ImportInstanceRequest,Instance,OperationMetadata> importInstanceOperationCallable()
Overrides
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
listInstancesCallable()
public UnaryCallable<ListInstancesRequest,ListInstancesResponse> listInstancesCallable()
Overrides
listInstancesPagedCallable()
public UnaryCallable<ListInstancesRequest,CloudRedisClient.ListInstancesPagedResponse> listInstancesPagedCallable()
Overrides
listLocationsCallable()
public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns |
---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> | |
Overrides
listLocationsPagedCallable()
public UnaryCallable<ListLocationsRequest,CloudRedisClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Overrides
rescheduleMaintenanceCallable()
public UnaryCallable<RescheduleMaintenanceRequest,Operation> rescheduleMaintenanceCallable()
Overrides
rescheduleMaintenanceOperationCallable()
public OperationCallable<RescheduleMaintenanceRequest,Instance,OperationMetadata> rescheduleMaintenanceOperationCallable()
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
updateInstanceCallable()
public UnaryCallable<UpdateInstanceRequest,Operation> updateInstanceCallable()
Overrides
updateInstanceOperationCallable()
public OperationCallable<UpdateInstanceRequest,Instance,OperationMetadata> updateInstanceOperationCallable()
Overrides
upgradeInstanceCallable()
public UnaryCallable<UpgradeInstanceRequest,Operation> upgradeInstanceCallable()
Overrides
upgradeInstanceOperationCallable()
public OperationCallable<UpgradeInstanceRequest,Instance,OperationMetadata> upgradeInstanceOperationCallable()
Overrides