Class ManagedKafkaGrpc.ManagedKafkaFutureStub (0.5.0)

public static final class ManagedKafkaGrpc.ManagedKafkaFutureStub extends AbstractFutureStub<ManagedKafkaGrpc.ManagedKafkaFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service ManagedKafka.

The service that a client application uses to manage Apache Kafka clusters, topics and consumer groups.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > ManagedKafkaGrpc.ManagedKafkaFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected ManagedKafkaGrpc.ManagedKafkaFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
ManagedKafkaGrpc.ManagedKafkaFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createCluster(CreateClusterRequest request)

public ListenableFuture<Operation> createCluster(CreateClusterRequest request)

Creates a new cluster in a given project and location.

Parameter
Name Description
request CreateClusterRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

createTopic(CreateTopicRequest request)

public ListenableFuture<Topic> createTopic(CreateTopicRequest request)

Creates a new topic in a given project and location.

Parameter
Name Description
request CreateTopicRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Topic>

deleteCluster(DeleteClusterRequest request)

public ListenableFuture<Operation> deleteCluster(DeleteClusterRequest request)

Deletes a single cluster.

Parameter
Name Description
request DeleteClusterRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteConsumerGroup(DeleteConsumerGroupRequest request)

public ListenableFuture<Empty> deleteConsumerGroup(DeleteConsumerGroupRequest request)

Deletes a single consumer group.

Parameter
Name Description
request DeleteConsumerGroupRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteTopic(DeleteTopicRequest request)

public ListenableFuture<Empty> deleteTopic(DeleteTopicRequest request)

Deletes a single topic.

Parameter
Name Description
request DeleteTopicRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

getCluster(GetClusterRequest request)

public ListenableFuture<Cluster> getCluster(GetClusterRequest request)

Returns the properties of a single cluster.

Parameter
Name Description
request GetClusterRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Cluster>

getConsumerGroup(GetConsumerGroupRequest request)

public ListenableFuture<ConsumerGroup> getConsumerGroup(GetConsumerGroupRequest request)

Returns the properties of a single consumer group.

Parameter
Name Description
request GetConsumerGroupRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ConsumerGroup>

getTopic(GetTopicRequest request)

public ListenableFuture<Topic> getTopic(GetTopicRequest request)

Returns the properties of a single topic.

Parameter
Name Description
request GetTopicRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Topic>

listClusters(ListClustersRequest request)

public ListenableFuture<ListClustersResponse> listClusters(ListClustersRequest request)

Lists the clusters in a given project and location.

Parameter
Name Description
request ListClustersRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListClustersResponse>

listConsumerGroups(ListConsumerGroupsRequest request)

public ListenableFuture<ListConsumerGroupsResponse> listConsumerGroups(ListConsumerGroupsRequest request)

Lists the consumer groups in a given cluster.

Parameter
Name Description
request ListConsumerGroupsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListConsumerGroupsResponse>

listTopics(ListTopicsRequest request)

public ListenableFuture<ListTopicsResponse> listTopics(ListTopicsRequest request)

Lists the topics in a given cluster.

Parameter
Name Description
request ListTopicsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListTopicsResponse>

updateCluster(UpdateClusterRequest request)

public ListenableFuture<Operation> updateCluster(UpdateClusterRequest request)

Updates the properties of a single cluster.

Parameter
Name Description
request UpdateClusterRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

updateConsumerGroup(UpdateConsumerGroupRequest request)

public ListenableFuture<ConsumerGroup> updateConsumerGroup(UpdateConsumerGroupRequest request)

Updates the properties of a single consumer group.

Parameter
Name Description
request UpdateConsumerGroupRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ConsumerGroup>

updateTopic(UpdateTopicRequest request)

public ListenableFuture<Topic> updateTopic(UpdateTopicRequest request)

Updates the properties of a single topic.

Parameter
Name Description
request UpdateTopicRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Topic>