Class GrpcCloudMemcacheStub
java.lang.Object
com.google.cloud.memcache.v1.stub.CloudMemcacheStub
com.google.cloud.memcache.v1.stub.GrpcCloudMemcacheStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the CloudMemcache service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcCloudMemcacheStub(CloudMemcacheStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcCloudMemcacheStub, using the given settings.protectedGrpcCloudMemcacheStub(CloudMemcacheStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcCloudMemcacheStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcCloudMemcacheStubcreate(ClientContext clientContext) static final GrpcCloudMemcacheStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcCloudMemcacheStubcreate(CloudMemcacheStubSettings settings) OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.memcache.v1.stub.CloudMemcacheStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcCloudMemcacheStub
protected GrpcCloudMemcacheStub(CloudMemcacheStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcCloudMemcacheStub, 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.- Throws:
IOException
-
GrpcCloudMemcacheStub
protected GrpcCloudMemcacheStub(CloudMemcacheStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcCloudMemcacheStub, 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcCloudMemcacheStub create(CloudMemcacheStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcCloudMemcacheStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classCloudMemcacheStub
-
listInstancesCallable
- Overrides:
listInstancesCallablein classCloudMemcacheStub
-
listInstancesPagedCallable
public UnaryCallable<ListInstancesRequest,CloudMemcacheClient.ListInstancesPagedResponse> listInstancesPagedCallable()- Overrides:
listInstancesPagedCallablein classCloudMemcacheStub
-
getInstanceCallable
- Overrides:
getInstanceCallablein classCloudMemcacheStub
-
createInstanceCallable
- Overrides:
createInstanceCallablein classCloudMemcacheStub
-
createInstanceOperationCallable
public OperationCallable<CreateInstanceRequest,Instance, createInstanceOperationCallable()OperationMetadata> - Overrides:
createInstanceOperationCallablein classCloudMemcacheStub
-
updateInstanceCallable
- Overrides:
updateInstanceCallablein classCloudMemcacheStub
-
updateInstanceOperationCallable
public OperationCallable<UpdateInstanceRequest,Instance, updateInstanceOperationCallable()OperationMetadata> - Overrides:
updateInstanceOperationCallablein classCloudMemcacheStub
-
updateParametersCallable
- Overrides:
updateParametersCallablein classCloudMemcacheStub
-
updateParametersOperationCallable
public OperationCallable<UpdateParametersRequest,Instance, updateParametersOperationCallable()OperationMetadata> - Overrides:
updateParametersOperationCallablein classCloudMemcacheStub
-
deleteInstanceCallable
- Overrides:
deleteInstanceCallablein classCloudMemcacheStub
-
deleteInstanceOperationCallable
public OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty, deleteInstanceOperationCallable()OperationMetadata> - Overrides:
deleteInstanceOperationCallablein classCloudMemcacheStub
-
applyParametersCallable
- Overrides:
applyParametersCallablein classCloudMemcacheStub
-
applyParametersOperationCallable
public OperationCallable<ApplyParametersRequest,Instance, applyParametersOperationCallable()OperationMetadata> - Overrides:
applyParametersOperationCallablein classCloudMemcacheStub
-
rescheduleMaintenanceCallable
- Overrides:
rescheduleMaintenanceCallablein classCloudMemcacheStub
-
rescheduleMaintenanceOperationCallable
public OperationCallable<RescheduleMaintenanceRequest,Instance, rescheduleMaintenanceOperationCallable()OperationMetadata> - Overrides:
rescheduleMaintenanceOperationCallablein classCloudMemcacheStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classCloudMemcacheStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,CloudMemcacheClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classCloudMemcacheStub
-
getLocationCallable
- Overrides:
getLocationCallablein classCloudMemcacheStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCloudMemcacheStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-