Class KafkaAdminClient
- All Implemented Interfaces:
MutinyDelegate
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKafkaAdminClient
(io.vertx.kafka.admin.KafkaAdminClient delegate) KafkaAdminClient
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>
close()
Close the admin clientio.smallrye.mutiny.Uni<Void>
close
(long timeout) Close the admin clientBlocking variant ofclose()
.closeAndAwait
(long timeout) Blocking variant ofclose(long)
.void
Variant ofclose()
that ignores the result of the operation.void
closeAndForget
(long timeout) Variant ofclose(long)
that ignores the result of the operation.static KafkaAdminClient
io.smallrye.mutiny.Uni<List<org.apache.kafka.common.acl.AclBinding>>
createAcls
(List<org.apache.kafka.common.acl.AclBinding> aclBindings) Create the ACL rules.List<org.apache.kafka.common.acl.AclBinding>
createAclsAndAwait
(List<org.apache.kafka.common.acl.AclBinding> aclBindings) Blocking variant ofcreateAcls(List)
.void
createAclsAndForget
(List<org.apache.kafka.common.acl.AclBinding> aclBindings) Variant ofcreateAcls(List)
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
createPartitions
(Map<String, io.vertx.kafka.admin.NewPartitions> partitions) Creates a batch of new partitions in the Kafka topiccreatePartitionsAndAwait
(Map<String, io.vertx.kafka.admin.NewPartitions> partitions) Blocking variant ofcreatePartitions(Map)
.void
createPartitionsAndForget
(Map<String, io.vertx.kafka.admin.NewPartitions> partitions) Variant ofcreatePartitions(Map)
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
createTopics
(List<io.vertx.kafka.admin.NewTopic> topics) Creates a batch of new Kafka topicscreateTopicsAndAwait
(List<io.vertx.kafka.admin.NewTopic> topics) Blocking variant ofcreateTopics(List)
.void
createTopicsAndForget
(List<io.vertx.kafka.admin.NewTopic> topics) Variant ofcreateTopics(List)
that ignores the result of the operation.io.smallrye.mutiny.Uni<List<org.apache.kafka.common.acl.AclBinding>>
deleteAcls
(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings) Delete the ACL rules.List<org.apache.kafka.common.acl.AclBinding>
deleteAclsAndAwait
(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings) Blocking variant ofdeleteAcls(List)
.void
deleteAclsAndForget
(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings) Variant ofdeleteAcls(List)
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
deleteConsumerGroupOffsets
(String groupId, Set<io.vertx.kafka.client.common.TopicPartition> partitions) Delete committed offsets for a set of partitions in a consumer group.deleteConsumerGroupOffsetsAndAwait
(String groupId, Set<io.vertx.kafka.client.common.TopicPartition> partitions) Blocking variant ofdeleteConsumerGroupOffsets(String,Set)
.void
deleteConsumerGroupOffsetsAndForget
(String groupId, Set<io.vertx.kafka.client.common.TopicPartition> partitions) Variant ofdeleteConsumerGroupOffsets(String,Set)
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
deleteConsumerGroups
(List<String> groupIds) Delete consumer groups from the cluster.deleteConsumerGroupsAndAwait
(List<String> groupIds) Blocking variant ofdeleteConsumerGroups(List)
.void
deleteConsumerGroupsAndForget
(List<String> groupIds) Variant ofdeleteConsumerGroups(List)
that ignores the result of the operation.io.smallrye.mutiny.Uni<Void>
deleteTopics
(List<String> topicNames) Deletes a batch of Kafka topicsdeleteTopicsAndAwait
(List<String> topicNames) Blocking variant ofdeleteTopics(List)
.void
deleteTopicsAndForget
(List<String> topicNames) Variant ofdeleteTopics(List)
that ignores the result of the operation.io.smallrye.mutiny.Uni<List<org.apache.kafka.common.acl.AclBinding>>
describeAcls
(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter) Describe the ACL rules.List<org.apache.kafka.common.acl.AclBinding>
describeAclsAndAwait
(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter) Blocking variant ofdescribeAcls(AclBindingFilter)
.void
describeAclsAndForget
(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter) Variant ofdescribeAcls(AclBindingFilter)
that ignores the result of the operation.io.smallrye.mutiny.Uni<io.vertx.kafka.admin.ClusterDescription>
Describe the nodes in the cluster with the default optionsio.smallrye.mutiny.Uni<io.vertx.kafka.admin.ClusterDescription>
describeCluster
(io.vertx.kafka.admin.DescribeClusterOptions options) LikedescribeCluster()
but allows customized options.io.vertx.kafka.admin.ClusterDescription
Blocking variant ofdescribeCluster()
.io.vertx.kafka.admin.ClusterDescription
describeClusterAndAwait
(io.vertx.kafka.admin.DescribeClusterOptions options) Blocking variant ofdescribeCluster(DescribeClusterOptions)
.void
Variant ofdescribeCluster()
that ignores the result of the operation.void
describeClusterAndForget
(io.vertx.kafka.admin.DescribeClusterOptions options) Variant ofdescribeCluster(DescribeClusterOptions)
that ignores the result of the operation.describeConsumerGroups
(List<String> groupIds) Describe some group ids in the cluster, with the default optionsdescribeConsumerGroups
(List<String> groupIds, io.vertx.kafka.admin.DescribeConsumerGroupsOptions options) LikedescribeConsumerGroups(java.util.List<java.lang.String>)
but allows customized optionsdescribeConsumerGroupsAndAwait
(List<String> groupIds) Blocking variant ofdescribeConsumerGroups(List)
.describeConsumerGroupsAndAwait
(List<String> groupIds, io.vertx.kafka.admin.DescribeConsumerGroupsOptions options) Blocking variant ofdescribeConsumerGroups(List,DescribeConsumerGroupsOptions)
.void
describeConsumerGroupsAndForget
(List<String> groupIds) Variant ofdescribeConsumerGroups(List)
that ignores the result of the operation.void
describeConsumerGroupsAndForget
(List<String> groupIds, io.vertx.kafka.admin.DescribeConsumerGroupsOptions options) Variant ofdescribeConsumerGroups(List,DescribeConsumerGroupsOptions)
that ignores the result of the operation.describeTopics
(List<String> topicNames) Describe some topics in the cluster, with the default options.describeTopics
(List<String> topicNames, io.vertx.kafka.admin.DescribeTopicsOptions options) LikedescribeTopics(java.util.List<java.lang.String>)
but allows for customised otionsdescribeTopicsAndAwait
(List<String> topicNames) Blocking variant ofdescribeTopics(List)
.describeTopicsAndAwait
(List<String> topicNames, io.vertx.kafka.admin.DescribeTopicsOptions options) Blocking variant ofdescribeTopics(List,DescribeTopicsOptions)
.void
describeTopicsAndForget
(List<String> topicNames) Variant ofdescribeTopics(List)
that ignores the result of the operation.void
describeTopicsAndForget
(List<String> topicNames, io.vertx.kafka.admin.DescribeTopicsOptions options) Variant ofdescribeTopics(List,DescribeTopicsOptions)
that ignores the result of the operation.boolean
io.vertx.kafka.admin.KafkaAdminClient
int
hashCode()
io.smallrye.mutiny.Uni<List<io.vertx.kafka.admin.ConsumerGroupListing>>
Get the the consumer groups available in the cluster with the default optionsList<io.vertx.kafka.admin.ConsumerGroupListing>
Blocking variant oflistConsumerGroups()
.void
Variant oflistConsumerGroups()
that ignores the result of the operation.List the topics available in the cluster with the default options.Blocking variant oflistTopics()
.void
Variant oflistTopics()
that ignores the result of the operation.static KafkaAdminClient
newInstance
(io.vertx.kafka.admin.KafkaAdminClient arg) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
KafkaAdminClient
public KafkaAdminClient(io.vertx.kafka.admin.KafkaAdminClient delegate) -
KafkaAdminClient
-
-
Method Details
-
getDelegate
public io.vertx.kafka.admin.KafkaAdminClient getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
create
- Parameters:
vertx
- Vert.x instance to useconfig
- Kafka admin client configuration- Returns:
- an instance of the KafkaAdminClient
-
listTopics
List the topics available in the cluster with the default options.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
listTopicsAndAwait
Blocking variant oflistTopics()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the Set
instance produced by the operation.
-
listTopicsAndForget
public void listTopicsAndForget()Variant oflistTopics()
that ignores the result of the operation.This method subscribes on the result of
listTopics()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromlistTopics()
but you don't need to compose it with other operations. -
describeTopics
@CheckReturnValue public io.smallrye.mutiny.Uni<Map<String,io.vertx.kafka.admin.TopicDescription>> describeTopics(List<String> topicNames) Describe some topics in the cluster, with the default options.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
topicNames
- the names of the topics to describe- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
describeTopicsAndAwait
public Map<String,io.vertx.kafka.admin.TopicDescription> describeTopicsAndAwait(List<String> topicNames) Blocking variant ofdescribeTopics(List)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
topicNames
- the names of the topics to describe- Returns:
- the Map<String,TopicDescription> instance produced by the operation.
-
describeTopicsAndForget
Variant ofdescribeTopics(List)
that ignores the result of the operation.This method subscribes on the result of
describeTopics(List)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdescribeTopics(List)
but you don't need to compose it with other operations.- Parameters:
topicNames
- the names of the topics to describe
-
describeTopics
@CheckReturnValue public io.smallrye.mutiny.Uni<Map<String,io.vertx.kafka.admin.TopicDescription>> describeTopics(List<String> topicNames, io.vertx.kafka.admin.DescribeTopicsOptions options) LikedescribeTopics(java.util.List<java.lang.String>)
but allows for customised otionsUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
topicNames
-options
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
describeTopicsAndAwait
public Map<String,io.vertx.kafka.admin.TopicDescription> describeTopicsAndAwait(List<String> topicNames, io.vertx.kafka.admin.DescribeTopicsOptions options) Blocking variant ofdescribeTopics(List,DescribeTopicsOptions)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
topicNames
-options
-- Returns:
- the Map<String,TopicDescription> instance produced by the operation.
-
describeTopicsAndForget
public void describeTopicsAndForget(List<String> topicNames, io.vertx.kafka.admin.DescribeTopicsOptions options) Variant ofdescribeTopics(List,DescribeTopicsOptions)
that ignores the result of the operation.This method subscribes on the result of
describeTopics(List,DescribeTopicsOptions)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdescribeTopics(List,DescribeTopicsOptions)
but you don't need to compose it with other operations.- Parameters:
topicNames
-options
-
-
createTopics
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> createTopics(List<io.vertx.kafka.admin.NewTopic> topics) Creates a batch of new Kafka topicsUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
topics
- topics to create- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createTopicsAndAwait
Blocking variant ofcreateTopics(List)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
topics
- topics to create- Returns:
- the Void instance produced by the operation.
-
createTopicsAndForget
Variant ofcreateTopics(List)
that ignores the result of the operation.This method subscribes on the result of
createTopics(List)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateTopics(List)
but you don't need to compose it with other operations.- Parameters:
topics
- topics to create
-
deleteTopics
Deletes a batch of Kafka topicsUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
topicNames
- the names of the topics to delete- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
deleteTopicsAndAwait
Blocking variant ofdeleteTopics(List)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
topicNames
- the names of the topics to delete- Returns:
- the Void instance produced by the operation.
-
deleteTopicsAndForget
Variant ofdeleteTopics(List)
that ignores the result of the operation.This method subscribes on the result of
deleteTopics(List)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdeleteTopics(List)
but you don't need to compose it with other operations.- Parameters:
topicNames
- the names of the topics to delete
-
createPartitions
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> createPartitions(Map<String, io.vertx.kafka.admin.NewPartitions> partitions) Creates a batch of new partitions in the Kafka topicUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
partitions
- partitions to create- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createPartitionsAndAwait
Blocking variant ofcreatePartitions(Map)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
partitions
- partitions to create- Returns:
- the Void instance produced by the operation.
-
createPartitionsAndForget
Variant ofcreatePartitions(Map)
that ignores the result of the operation.This method subscribes on the result of
createPartitions(Map)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreatePartitions(Map)
but you don't need to compose it with other operations.- Parameters:
partitions
- partitions to create
-
listConsumerGroups
@CheckReturnValue public io.smallrye.mutiny.Uni<List<io.vertx.kafka.admin.ConsumerGroupListing>> listConsumerGroups()Get the the consumer groups available in the cluster with the default optionsUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
listConsumerGroupsAndAwait
Blocking variant oflistConsumerGroups()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the List
instance produced by the operation.
-
listConsumerGroupsAndForget
public void listConsumerGroupsAndForget()Variant oflistConsumerGroups()
that ignores the result of the operation.This method subscribes on the result of
listConsumerGroups()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromlistConsumerGroups()
but you don't need to compose it with other operations. -
describeConsumerGroups
@CheckReturnValue public io.smallrye.mutiny.Uni<Map<String,io.vertx.kafka.admin.ConsumerGroupDescription>> describeConsumerGroups(List<String> groupIds) Describe some group ids in the cluster, with the default optionsUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
groupIds
- the ids of the groups to describe- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
describeConsumerGroupsAndAwait
public Map<String,io.vertx.kafka.admin.ConsumerGroupDescription> describeConsumerGroupsAndAwait(List<String> groupIds) Blocking variant ofdescribeConsumerGroups(List)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
groupIds
- the ids of the groups to describe- Returns:
- the Map<String,ConsumerGroupDescription> instance produced by the operation.
-
describeConsumerGroupsAndForget
Variant ofdescribeConsumerGroups(List)
that ignores the result of the operation.This method subscribes on the result of
describeConsumerGroups(List)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdescribeConsumerGroups(List)
but you don't need to compose it with other operations.- Parameters:
groupIds
- the ids of the groups to describe
-
describeConsumerGroups
@CheckReturnValue public io.smallrye.mutiny.Uni<Map<String,io.vertx.kafka.admin.ConsumerGroupDescription>> describeConsumerGroups(List<String> groupIds, io.vertx.kafka.admin.DescribeConsumerGroupsOptions options) LikedescribeConsumerGroups(java.util.List<java.lang.String>)
but allows customized optionsUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
groupIds
-options
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
describeConsumerGroupsAndAwait
public Map<String,io.vertx.kafka.admin.ConsumerGroupDescription> describeConsumerGroupsAndAwait(List<String> groupIds, io.vertx.kafka.admin.DescribeConsumerGroupsOptions options) Blocking variant ofdescribeConsumerGroups(List,DescribeConsumerGroupsOptions)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
groupIds
-options
-- Returns:
- the Map<String,ConsumerGroupDescription> instance produced by the operation.
-
describeConsumerGroupsAndForget
public void describeConsumerGroupsAndForget(List<String> groupIds, io.vertx.kafka.admin.DescribeConsumerGroupsOptions options) Variant ofdescribeConsumerGroups(List,DescribeConsumerGroupsOptions)
that ignores the result of the operation.This method subscribes on the result of
describeConsumerGroups(List,DescribeConsumerGroupsOptions)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdescribeConsumerGroups(List,DescribeConsumerGroupsOptions)
but you don't need to compose it with other operations.- Parameters:
groupIds
-options
-
-
describeCluster
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.kafka.admin.ClusterDescription> describeCluster()Describe the nodes in the cluster with the default optionsUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
describeClusterAndAwait
public io.vertx.kafka.admin.ClusterDescription describeClusterAndAwait()Blocking variant ofdescribeCluster()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the ClusterDescription instance produced by the operation.
-
describeClusterAndForget
public void describeClusterAndForget()Variant ofdescribeCluster()
that ignores the result of the operation.This method subscribes on the result of
describeCluster()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdescribeCluster()
but you don't need to compose it with other operations. -
describeCluster
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.kafka.admin.ClusterDescription> describeCluster(io.vertx.kafka.admin.DescribeClusterOptions options) LikedescribeCluster()
but allows customized options.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
options
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
describeClusterAndAwait
public io.vertx.kafka.admin.ClusterDescription describeClusterAndAwait(io.vertx.kafka.admin.DescribeClusterOptions options) Blocking variant ofdescribeCluster(DescribeClusterOptions)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
options
-- Returns:
- the ClusterDescription instance produced by the operation.
-
describeClusterAndForget
public void describeClusterAndForget(io.vertx.kafka.admin.DescribeClusterOptions options) Variant ofdescribeCluster(DescribeClusterOptions)
that ignores the result of the operation.This method subscribes on the result of
describeCluster(DescribeClusterOptions)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdescribeCluster(DescribeClusterOptions)
but you don't need to compose it with other operations.- Parameters:
options
-
-
deleteConsumerGroups
Delete consumer groups from the cluster.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
groupIds
- the ids of the groups to delete- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
deleteConsumerGroupsAndAwait
Blocking variant ofdeleteConsumerGroups(List)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
groupIds
- the ids of the groups to delete- Returns:
- the Void instance produced by the operation.
-
deleteConsumerGroupsAndForget
Variant ofdeleteConsumerGroups(List)
that ignores the result of the operation.This method subscribes on the result of
deleteConsumerGroups(List)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdeleteConsumerGroups(List)
but you don't need to compose it with other operations.- Parameters:
groupIds
- the ids of the groups to delete
-
deleteConsumerGroupOffsets
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> deleteConsumerGroupOffsets(String groupId, Set<io.vertx.kafka.client.common.TopicPartition> partitions) Delete committed offsets for a set of partitions in a consumer group. This will succeed at the partition level only if the group is not actively subscribed to the corresponding topic.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
groupId
- The group id of the group whose offsets will be deletedpartitions
- The set of partitions in the consumer group whose offsets will be deleted- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
deleteConsumerGroupOffsetsAndAwait
public Void deleteConsumerGroupOffsetsAndAwait(String groupId, Set<io.vertx.kafka.client.common.TopicPartition> partitions) Blocking variant ofdeleteConsumerGroupOffsets(String,Set)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
groupId
- The group id of the group whose offsets will be deletedpartitions
- The set of partitions in the consumer group whose offsets will be deleted- Returns:
- the Void instance produced by the operation.
-
deleteConsumerGroupOffsetsAndForget
public void deleteConsumerGroupOffsetsAndForget(String groupId, Set<io.vertx.kafka.client.common.TopicPartition> partitions) Variant ofdeleteConsumerGroupOffsets(String,Set)
that ignores the result of the operation.This method subscribes on the result of
deleteConsumerGroupOffsets(String,Set)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdeleteConsumerGroupOffsets(String,Set)
but you don't need to compose it with other operations.- Parameters:
groupId
- The group id of the group whose offsets will be deletedpartitions
- The set of partitions in the consumer group whose offsets will be deleted
-
close
Close the admin clientUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
closeAndAwait
Blocking variant ofclose()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the Void instance produced by the operation.
-
closeAndForget
public void closeAndForget() -
close
Close the admin clientUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
timeout
- timeout to wait for closing- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
closeAndAwait
Blocking variant ofclose(long)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
timeout
- timeout to wait for closing- Returns:
- the Void instance produced by the operation.
-
closeAndForget
public void closeAndForget(long timeout) Variant ofclose(long)
that ignores the result of the operation.This method subscribes on the result of
close(long)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromclose(long)
but you don't need to compose it with other operations.- Parameters:
timeout
- timeout to wait for closing
-
describeAcls
@CheckReturnValue public io.smallrye.mutiny.Uni<List<org.apache.kafka.common.acl.AclBinding>> describeAcls(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter) Describe the ACL rules.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
aclBindingFilter
- The filter to use.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
describeAclsAndAwait
public List<org.apache.kafka.common.acl.AclBinding> describeAclsAndAwait(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter) Blocking variant ofdescribeAcls(AclBindingFilter)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
aclBindingFilter
- The filter to use.- Returns:
- the List
instance produced by the operation.
-
describeAclsAndForget
public void describeAclsAndForget(org.apache.kafka.common.acl.AclBindingFilter aclBindingFilter) Variant ofdescribeAcls(AclBindingFilter)
that ignores the result of the operation.This method subscribes on the result of
describeAcls(AclBindingFilter)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdescribeAcls(AclBindingFilter)
but you don't need to compose it with other operations.- Parameters:
aclBindingFilter
- The filter to use.
-
createAcls
@CheckReturnValue public io.smallrye.mutiny.Uni<List<org.apache.kafka.common.acl.AclBinding>> createAcls(List<org.apache.kafka.common.acl.AclBinding> aclBindings) Create the ACL rules.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
aclBindings
- The ACL to create.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createAclsAndAwait
public List<org.apache.kafka.common.acl.AclBinding> createAclsAndAwait(List<org.apache.kafka.common.acl.AclBinding> aclBindings) Blocking variant ofcreateAcls(List)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
aclBindings
- The ACL to create.- Returns:
- the List
instance produced by the operation.
-
createAclsAndForget
Variant ofcreateAcls(List)
that ignores the result of the operation.This method subscribes on the result of
createAcls(List)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateAcls(List)
but you don't need to compose it with other operations.- Parameters:
aclBindings
- The ACL to create.
-
deleteAcls
@CheckReturnValue public io.smallrye.mutiny.Uni<List<org.apache.kafka.common.acl.AclBinding>> deleteAcls(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings) Delete the ACL rules.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
aclBindings
- The filter to delete matching ACLs.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
deleteAclsAndAwait
public List<org.apache.kafka.common.acl.AclBinding> deleteAclsAndAwait(List<org.apache.kafka.common.acl.AclBindingFilter> aclBindings) Blocking variant ofdeleteAcls(List)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
aclBindings
- The filter to delete matching ACLs.- Returns:
- the List
instance produced by the operation.
-
deleteAclsAndForget
Variant ofdeleteAcls(List)
that ignores the result of the operation.This method subscribes on the result of
deleteAcls(List)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdeleteAcls(List)
but you don't need to compose it with other operations.- Parameters:
aclBindings
- The filter to delete matching ACLs.
-
newInstance
-