Class GrpcManagedKafkaStub
java.lang.Object
com.google.cloud.managedkafka.v1.stub.ManagedKafkaStub
com.google.cloud.managedkafka.v1.stub.GrpcManagedKafkaStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the ManagedKafka service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcManagedKafkaStub(ManagedKafkaStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcManagedKafkaStub, using the given settings.protectedGrpcManagedKafkaStub(ManagedKafkaStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcManagedKafkaStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcManagedKafkaStubcreate(ClientContext clientContext) static final GrpcManagedKafkaStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcManagedKafkaStubcreate(ManagedKafkaStubSettings settings) UnaryCallable<DeleteAclRequest,com.google.protobuf.Empty> OperationCallable<DeleteClusterRequest,com.google.protobuf.Empty, OperationMetadata> UnaryCallable<DeleteConsumerGroupRequest,com.google.protobuf.Empty> UnaryCallable<DeleteTopicRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.managedkafka.v1.stub.ManagedKafkaStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcManagedKafkaStub
protected GrpcManagedKafkaStub(ManagedKafkaStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcManagedKafkaStub, 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
-
GrpcManagedKafkaStub
protected GrpcManagedKafkaStub(ManagedKafkaStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcManagedKafkaStub, 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 GrpcManagedKafkaStub create(ManagedKafkaStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcManagedKafkaStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classManagedKafkaStub
-
listClustersCallable
- Overrides:
listClustersCallablein classManagedKafkaStub
-
listClustersPagedCallable
public UnaryCallable<ListClustersRequest,ManagedKafkaClient.ListClustersPagedResponse> listClustersPagedCallable()- Overrides:
listClustersPagedCallablein classManagedKafkaStub
-
getClusterCallable
- Overrides:
getClusterCallablein classManagedKafkaStub
-
createClusterCallable
- Overrides:
createClusterCallablein classManagedKafkaStub
-
createClusterOperationCallable
public OperationCallable<CreateClusterRequest,Cluster, createClusterOperationCallable()OperationMetadata> - Overrides:
createClusterOperationCallablein classManagedKafkaStub
-
updateClusterCallable
- Overrides:
updateClusterCallablein classManagedKafkaStub
-
updateClusterOperationCallable
public OperationCallable<UpdateClusterRequest,Cluster, updateClusterOperationCallable()OperationMetadata> - Overrides:
updateClusterOperationCallablein classManagedKafkaStub
-
deleteClusterCallable
- Overrides:
deleteClusterCallablein classManagedKafkaStub
-
deleteClusterOperationCallable
public OperationCallable<DeleteClusterRequest,com.google.protobuf.Empty, deleteClusterOperationCallable()OperationMetadata> - Overrides:
deleteClusterOperationCallablein classManagedKafkaStub
-
listTopicsCallable
- Overrides:
listTopicsCallablein classManagedKafkaStub
-
listTopicsPagedCallable
public UnaryCallable<ListTopicsRequest,ManagedKafkaClient.ListTopicsPagedResponse> listTopicsPagedCallable()- Overrides:
listTopicsPagedCallablein classManagedKafkaStub
-
getTopicCallable
- Overrides:
getTopicCallablein classManagedKafkaStub
-
createTopicCallable
- Overrides:
createTopicCallablein classManagedKafkaStub
-
updateTopicCallable
- Overrides:
updateTopicCallablein classManagedKafkaStub
-
deleteTopicCallable
- Overrides:
deleteTopicCallablein classManagedKafkaStub
-
listConsumerGroupsCallable
public UnaryCallable<ListConsumerGroupsRequest,ListConsumerGroupsResponse> listConsumerGroupsCallable()- Overrides:
listConsumerGroupsCallablein classManagedKafkaStub
-
listConsumerGroupsPagedCallable
public UnaryCallable<ListConsumerGroupsRequest,ManagedKafkaClient.ListConsumerGroupsPagedResponse> listConsumerGroupsPagedCallable()- Overrides:
listConsumerGroupsPagedCallablein classManagedKafkaStub
-
getConsumerGroupCallable
- Overrides:
getConsumerGroupCallablein classManagedKafkaStub
-
updateConsumerGroupCallable
- Overrides:
updateConsumerGroupCallablein classManagedKafkaStub
-
deleteConsumerGroupCallable
public UnaryCallable<DeleteConsumerGroupRequest,com.google.protobuf.Empty> deleteConsumerGroupCallable()- Overrides:
deleteConsumerGroupCallablein classManagedKafkaStub
-
listAclsCallable
- Overrides:
listAclsCallablein classManagedKafkaStub
-
listAclsPagedCallable
public UnaryCallable<ListAclsRequest,ManagedKafkaClient.ListAclsPagedResponse> listAclsPagedCallable()- Overrides:
listAclsPagedCallablein classManagedKafkaStub
-
getAclCallable
- Overrides:
getAclCallablein classManagedKafkaStub
-
createAclCallable
- Overrides:
createAclCallablein classManagedKafkaStub
-
updateAclCallable
- Overrides:
updateAclCallablein classManagedKafkaStub
-
deleteAclCallable
- Overrides:
deleteAclCallablein classManagedKafkaStub
-
addAclEntryCallable
- Overrides:
addAclEntryCallablein classManagedKafkaStub
-
removeAclEntryCallable
- Overrides:
removeAclEntryCallablein classManagedKafkaStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classManagedKafkaStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,ManagedKafkaClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classManagedKafkaStub
-
getLocationCallable
- Overrides:
getLocationCallablein classManagedKafkaStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classManagedKafkaStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-