@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.v1.CreateInstanceRequest,Operation> |
createInstanceCallable() |
OperationCallable<com.google.cloud.redis.v1.CreateInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> |
createInstanceOperationCallable() |
UnaryCallable<com.google.cloud.redis.v1.DeleteInstanceRequest,Operation> |
deleteInstanceCallable() |
OperationCallable<com.google.cloud.redis.v1.DeleteInstanceRequest,Empty,com.google.cloud.redis.v1.OperationMetadata> |
deleteInstanceOperationCallable() |
UnaryCallable<com.google.cloud.redis.v1.FailoverInstanceRequest,Operation> |
failoverInstanceCallable() |
OperationCallable<com.google.cloud.redis.v1.FailoverInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> |
failoverInstanceOperationCallable() |
UnaryCallable<com.google.cloud.redis.v1.GetInstanceRequest,com.google.cloud.redis.v1.Instance> |
getInstanceCallable() |
GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.cloud.redis.v1.ListInstancesRequest,com.google.cloud.redis.v1.ListInstancesResponse> |
listInstancesCallable() |
UnaryCallable<com.google.cloud.redis.v1.ListInstancesRequest,CloudRedisClient.ListInstancesPagedResponse> |
listInstancesPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.cloud.redis.v1.UpdateInstanceRequest,Operation> |
updateInstanceCallable() |
OperationCallable<com.google.cloud.redis.v1.UpdateInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> |
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.v1.ListInstancesRequest,CloudRedisClient.ListInstancesPagedResponse> listInstancesPagedCallable()
listInstancesPagedCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1.ListInstancesRequest,com.google.cloud.redis.v1.ListInstancesResponse> listInstancesCallable()
listInstancesCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1.GetInstanceRequest,com.google.cloud.redis.v1.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.v1.CreateInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> createInstanceOperationCallable()
createInstanceOperationCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1.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.v1.UpdateInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> updateInstanceOperationCallable()
updateInstanceOperationCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1.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.v1.DeleteInstanceRequest,Empty,com.google.cloud.redis.v1.OperationMetadata> deleteInstanceOperationCallable()
deleteInstanceOperationCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1.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.v1.FailoverInstanceRequest,com.google.cloud.redis.v1.Instance,com.google.cloud.redis.v1.OperationMetadata> failoverInstanceOperationCallable()
failoverInstanceOperationCallable
in class CloudRedisStub
public UnaryCallable<com.google.cloud.redis.v1.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.