Class HttpJsonMemorystoreStub
java.lang.Object
com.google.cloud.memorystore.v1.stub.MemorystoreStub
com.google.cloud.memorystore.v1.stub.HttpJsonMemorystoreStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
REST stub implementation for the Memorystore service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonMemorystoreStub(MemorystoreStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonMemorystoreStub, using the given settings.protectedHttpJsonMemorystoreStub(MemorystoreStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonMemorystoreStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonMemorystoreStubcreate(ClientContext clientContext) static final HttpJsonMemorystoreStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonMemorystoreStubcreate(MemorystoreStubSettings settings) OperationCallable<DeleteBackupRequest,com.google.protobuf.Empty, OperationMetadata> OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty, OperationMetadata> static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.memorystore.v1.stub.MemorystoreStub
getOperationsStub
-
Constructor Details
-
HttpJsonMemorystoreStub
protected HttpJsonMemorystoreStub(MemorystoreStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonMemorystoreStub, 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
-
HttpJsonMemorystoreStub
protected HttpJsonMemorystoreStub(MemorystoreStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonMemorystoreStub, 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 HttpJsonMemorystoreStub create(MemorystoreStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final HttpJsonMemorystoreStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getHttpJsonOperationsStub
- Overrides:
getHttpJsonOperationsStubin classMemorystoreStub
-
listInstancesCallable
- Overrides:
listInstancesCallablein classMemorystoreStub
-
listInstancesPagedCallable
public UnaryCallable<ListInstancesRequest,MemorystoreClient.ListInstancesPagedResponse> listInstancesPagedCallable()- Overrides:
listInstancesPagedCallablein classMemorystoreStub
-
getInstanceCallable
- Overrides:
getInstanceCallablein classMemorystoreStub
-
createInstanceCallable
- Overrides:
createInstanceCallablein classMemorystoreStub
-
createInstanceOperationCallable
public OperationCallable<CreateInstanceRequest,Instance, createInstanceOperationCallable()OperationMetadata> - Overrides:
createInstanceOperationCallablein classMemorystoreStub
-
updateInstanceCallable
- Overrides:
updateInstanceCallablein classMemorystoreStub
-
updateInstanceOperationCallable
public OperationCallable<UpdateInstanceRequest,Instance, updateInstanceOperationCallable()OperationMetadata> - Overrides:
updateInstanceOperationCallablein classMemorystoreStub
-
deleteInstanceCallable
- Overrides:
deleteInstanceCallablein classMemorystoreStub
-
deleteInstanceOperationCallable
public OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty, deleteInstanceOperationCallable()OperationMetadata> - Overrides:
deleteInstanceOperationCallablein classMemorystoreStub
-
getCertificateAuthorityCallable
public UnaryCallable<GetCertificateAuthorityRequest,CertificateAuthority> getCertificateAuthorityCallable()- Overrides:
getCertificateAuthorityCallablein classMemorystoreStub
-
rescheduleMaintenanceCallable
- Overrides:
rescheduleMaintenanceCallablein classMemorystoreStub
-
rescheduleMaintenanceOperationCallable
public OperationCallable<RescheduleMaintenanceRequest,Instance, rescheduleMaintenanceOperationCallable()OperationMetadata> - Overrides:
rescheduleMaintenanceOperationCallablein classMemorystoreStub
-
listBackupCollectionsCallable
public UnaryCallable<ListBackupCollectionsRequest,ListBackupCollectionsResponse> listBackupCollectionsCallable()- Overrides:
listBackupCollectionsCallablein classMemorystoreStub
-
listBackupCollectionsPagedCallable
public UnaryCallable<ListBackupCollectionsRequest,MemorystoreClient.ListBackupCollectionsPagedResponse> listBackupCollectionsPagedCallable()- Overrides:
listBackupCollectionsPagedCallablein classMemorystoreStub
-
getBackupCollectionCallable
- Overrides:
getBackupCollectionCallablein classMemorystoreStub
-
listBackupsCallable
- Overrides:
listBackupsCallablein classMemorystoreStub
-
listBackupsPagedCallable
public UnaryCallable<ListBackupsRequest,MemorystoreClient.ListBackupsPagedResponse> listBackupsPagedCallable()- Overrides:
listBackupsPagedCallablein classMemorystoreStub
-
getBackupCallable
- Overrides:
getBackupCallablein classMemorystoreStub
-
deleteBackupCallable
- Overrides:
deleteBackupCallablein classMemorystoreStub
-
deleteBackupOperationCallable
public OperationCallable<DeleteBackupRequest,com.google.protobuf.Empty, deleteBackupOperationCallable()OperationMetadata> - Overrides:
deleteBackupOperationCallablein classMemorystoreStub
-
exportBackupCallable
- Overrides:
exportBackupCallablein classMemorystoreStub
-
exportBackupOperationCallable
public OperationCallable<ExportBackupRequest,Backup, exportBackupOperationCallable()OperationMetadata> - Overrides:
exportBackupOperationCallablein classMemorystoreStub
-
backupInstanceCallable
- Overrides:
backupInstanceCallablein classMemorystoreStub
-
backupInstanceOperationCallable
public OperationCallable<BackupInstanceRequest,Instance, backupInstanceOperationCallable()OperationMetadata> - Overrides:
backupInstanceOperationCallablein classMemorystoreStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classMemorystoreStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,MemorystoreClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classMemorystoreStub
-
getLocationCallable
- Overrides:
getLocationCallablein classMemorystoreStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classMemorystoreStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-