Class GrpcMemorystoreStub
java.lang.Object
com.google.cloud.memorystore.v1beta.stub.MemorystoreStub
com.google.cloud.memorystore.v1beta.stub.GrpcMemorystoreStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcMemorystoreStub
extends MemorystoreStub
gRPC stub implementation for the Memorystore service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcMemorystoreStub(MemorystoreStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcMemorystoreStub, using the given settings.protectedGrpcMemorystoreStub(MemorystoreStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcMemorystoreStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcMemorystoreStubcreate(ClientContext clientContext) static final GrpcMemorystoreStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcMemorystoreStubcreate(MemorystoreStubSettings settings) OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.memorystore.v1beta.stub.MemorystoreStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcMemorystoreStub
protected GrpcMemorystoreStub(MemorystoreStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcMemorystoreStub, 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
-
GrpcMemorystoreStub
protected GrpcMemorystoreStub(MemorystoreStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcMemorystoreStub, 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
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcMemorystoreStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin 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
-
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
-