@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcCloudRedisStub extends CloudRedisStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcCloudRedisStub(CloudRedisStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcCloudRedisStub, using the given settings.
|
protected |
GrpcCloudRedisStub(CloudRedisStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcCloudRedisStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcCloudRedisStub |
create(ClientContext clientContext) |
static GrpcCloudRedisStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcCloudRedisStub |
create(CloudRedisStubSettings settings) |
UnaryCallable<com.google.cloud.redis.v1beta1.CreateInstanceRequest,Operation> |
createInstanceCallable() |
OperationCallable<com.google.cloud.redis.v1beta1.CreateInstanceRequest,com.google.cloud.redis.v1beta1.Instance,Any> |
createInstanceOperationCallable() |
UnaryCallable<com.google.cloud.redis.v1beta1.DeleteInstanceRequest,Operation> |
deleteInstanceCallable() |
OperationCallable<com.google.cloud.redis.v1beta1.DeleteInstanceRequest,Empty,Any> |
deleteInstanceOperationCallable() |
UnaryCallable<com.google.cloud.redis.v1beta1.FailoverInstanceRequest,Operation> |
failoverInstanceCallable() |
OperationCallable<com.google.cloud.redis.v1beta1.FailoverInstanceRequest,com.google.cloud.redis.v1beta1.Instance,Any> |
failoverInstanceOperationCallable() |
UnaryCallable<com.google.cloud.redis.v1beta1.GetInstanceRequest,com.google.cloud.redis.v1beta1.Instance> |
getInstanceCallable() |
GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.cloud.redis.v1beta1.ListInstancesRequest,com.google.cloud.redis.v1beta1.ListInstancesResponse> |
listInstancesCallable() |
UnaryCallable<com.google.cloud.redis.v1beta1.ListInstancesRequest,CloudRedisClient.ListInstancesPagedResponse> |
listInstancesPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.cloud.redis.v1beta1.UpdateInstanceRequest,Operation> |
updateInstanceCallable() |
OperationCallable<com.google.cloud.redis.v1beta1.UpdateInstanceRequest,com.google.cloud.redis.v1beta1.Instance,Any> |
updateInstanceOperationCallable() |
protected GrpcCloudRedisStub(CloudRedisStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcCloudRedisStub(CloudRedisStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcCloudRedisStub create(CloudRedisStubSettings settings) throws IOException
IOException
public static final GrpcCloudRedisStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcCloudRedisStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub()
getOperationsStub
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1beta1.ListInstancesRequest,CloudRedisClient.ListInstancesPagedResponse> listInstancesPagedCallable()
listInstancesPagedCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1beta1.ListInstancesRequest,com.google.cloud.redis.v1beta1.ListInstancesResponse> listInstancesCallable()
listInstancesCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1beta1.GetInstanceRequest,com.google.cloud.redis.v1beta1.Instance> getInstanceCallable()
getInstanceCallable
in class CloudRedisStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.redis.v1beta1.CreateInstanceRequest,com.google.cloud.redis.v1beta1.Instance,Any> createInstanceOperationCallable()
createInstanceOperationCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1beta1.CreateInstanceRequest,Operation> createInstanceCallable()
createInstanceCallable
in class CloudRedisStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.redis.v1beta1.UpdateInstanceRequest,com.google.cloud.redis.v1beta1.Instance,Any> updateInstanceOperationCallable()
updateInstanceOperationCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1beta1.UpdateInstanceRequest,Operation> updateInstanceCallable()
updateInstanceCallable
in class CloudRedisStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.redis.v1beta1.DeleteInstanceRequest,Empty,Any> deleteInstanceOperationCallable()
deleteInstanceOperationCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1beta1.DeleteInstanceRequest,Operation> deleteInstanceCallable()
deleteInstanceCallable
in class CloudRedisStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.redis.v1beta1.FailoverInstanceRequest,com.google.cloud.redis.v1beta1.Instance,Any> failoverInstanceOperationCallable()
failoverInstanceOperationCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1beta1.FailoverInstanceRequest,Operation> failoverInstanceCallable()
failoverInstanceCallable
in class CloudRedisStub
public final void close()
close
in interface AutoCloseable
close
in class CloudRedisStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.