Package io.vertx.kafka.admin
Class ConsumerGroupDescription
java.lang.Object
io.vertx.kafka.admin.ConsumerGroupDescription
A detailed description of a single consumer group in the cluster
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorConstructor (from JSON representation)ConsumerGroupDescription(String groupId, boolean isSimpleConsumerGroup, List<MemberDescription> members, String partitionAssignor, org.apache.kafka.common.ConsumerGroupState state, Node coordinator, Set<org.apache.kafka.common.acl.AclOperation> authorizedOperations) Constructor -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.kafka.common.acl.AclOperation>org.apache.kafka.common.ConsumerGroupStategetState()booleansetAuthorizedOperations(Set<org.apache.kafka.common.acl.AclOperation> authorizedOperations) Set the id of the consumer groupsetCoordinator(Node coordinator) Set the consumer group coordinator, or null if the coordinator is not knownsetGroupId(String groupId) Set the id of the consumer groupsetMembers(List<MemberDescription> members) Set a list of the members of the consumer groupsetPartitionAssignor(String partitionAssignor) Set the consumer group partition assignorsetSimpleConsumerGroup(boolean isSimpleConsumerGroup) Set if consumer group is simple or notsetState(org.apache.kafka.common.ConsumerGroupState state) Set the consumer group state, or UNKNOWN if the state is too new for us to parsetoJson()Convert object to JSON representationtoString()
-
Constructor Details
-
ConsumerGroupDescription
public ConsumerGroupDescription()Constructor -
ConsumerGroupDescription
public ConsumerGroupDescription(String groupId, boolean isSimpleConsumerGroup, List<MemberDescription> members, String partitionAssignor, org.apache.kafka.common.ConsumerGroupState state, Node coordinator, Set<org.apache.kafka.common.acl.AclOperation> authorizedOperations) Constructor- Parameters:
groupId- the id of the consumer groupisSimpleConsumerGroup- if consumer group is simple or notmembers- a list of the members of the consumer grouppartitionAssignor- the consumer group partition assignorstate- the consumer group state, or UNKNOWN if the state is too new for us to parsecoordinator- the consumer group coordinator, or null if the coordinator is not knownauthorizedOperations- authorizedOperations for this group, or null if that information is not known.
-
ConsumerGroupDescription
Constructor (from JSON representation)- Parameters:
json- JSON representation
-
-
Method Details
-
getGroupId
- Returns:
- the id of the consumer group
-
setGroupId
Set the id of the consumer group- Parameters:
groupId- the id of the consumer group- Returns:
- current instance of the class to be fluent
-
isSimpleConsumerGroup
public boolean isSimpleConsumerGroup()- Returns:
- if consumer group is simple or not
-
setSimpleConsumerGroup
Set if consumer group is simple or not- Parameters:
isSimpleConsumerGroup- if consumer group is simple or not- Returns:
- current instance of the class to be fluent
-
getCoordinator
- Returns:
- the consumer group coordinator, or null if the coordinator is not known
-
setCoordinator
Set the consumer group coordinator, or null if the coordinator is not known- Parameters:
coordinator- the consumer group coordinator, or null if the coordinator is not known- Returns:
- current instance of the class to be fluent
-
getMembers
- Returns:
- a list of the members of the consumer group
-
setMembers
Set a list of the members of the consumer group- Parameters:
members- a list of the members of the consumer group- Returns:
- current instance of the class to be fluent
-
getPartitionAssignor
- Returns:
- the consumer group partition assignor
-
setPartitionAssignor
Set the consumer group partition assignor- Parameters:
partitionAssignor- the consumer group partition assignor- Returns:
- current instance of the class to be fluent
-
getState
public org.apache.kafka.common.ConsumerGroupState getState()- Returns:
- the consumer group state, or UNKNOWN if the state is too new for us to parse
-
setState
Set the consumer group state, or UNKNOWN if the state is too new for us to parse- Parameters:
state- the consumer group state, or UNKNOWN if the state is too new for us to parse- Returns:
- current instance of the class to be fluent
-
getAuthorizedOperations
- Returns:
- authorizedOperations authorizedOperations for this group, or null if that information is not known.
-
setAuthorizedOperations
public ConsumerGroupDescription setAuthorizedOperations(Set<org.apache.kafka.common.acl.AclOperation> authorizedOperations) Set the id of the consumer group- Parameters:
authorizedOperations- authorizedOperations for this group, or null if that information is not known.- Returns:
- current instance of the class to be fluent
-
toJson
Convert object to JSON representation- Returns:
- JSON representation
-
toString
-