Package org.apache.kafka.clients.admin
Class ConsumerGroupListing
java.lang.Object
org.apache.kafka.clients.admin.ConsumerGroupListing
A listing of a consumer group in the cluster.
-
Constructor Summary
ConstructorDescriptionConsumerGroupListing
(String groupId, boolean isSimpleConsumerGroup) Create an instance with the specified parameters.ConsumerGroupListing
(String groupId, boolean isSimpleConsumerGroup, Optional<ConsumerGroupState> state) Create an instance with the specified parameters.ConsumerGroupListing
(String groupId, boolean isSimpleConsumerGroup, Optional<ConsumerGroupState> state, Optional<GroupType> type) Create an instance with the specified parameters. -
Method Summary
-
Constructor Details
-
ConsumerGroupListing
Create an instance with the specified parameters.- Parameters:
groupId
- Group IdisSimpleConsumerGroup
- If consumer group is simple or not.
-
ConsumerGroupListing
public ConsumerGroupListing(String groupId, boolean isSimpleConsumerGroup, Optional<ConsumerGroupState> state) Create an instance with the specified parameters.- Parameters:
groupId
- Group IdisSimpleConsumerGroup
- If consumer group is simple or not.state
- The state of the consumer group
-
ConsumerGroupListing
public ConsumerGroupListing(String groupId, boolean isSimpleConsumerGroup, Optional<ConsumerGroupState> state, Optional<GroupType> type) Create an instance with the specified parameters.- Parameters:
groupId
- Group Id.isSimpleConsumerGroup
- If consumer group is simple or not.state
- The state of the consumer group.type
- The type of the consumer group.
-
-
Method Details
-
groupId
Consumer Group Id -
isSimpleConsumerGroup
public boolean isSimpleConsumerGroup()If Consumer Group is simple or not. -
state
Consumer Group state -
type
The type of the consumer group.- Returns:
- An Optional containing the type, if available.
-
toString
-
hashCode
public int hashCode() -
equals
-