Package org.apache.kafka.clients.admin
Class ConsumerGroupListing
- java.lang.Object
-
- org.apache.kafka.clients.admin.ConsumerGroupListing
-
public class ConsumerGroupListing extends java.lang.Object
A listing of a consumer group in the cluster.
-
-
Constructor Summary
Constructors Constructor Description ConsumerGroupListing(java.lang.String groupId, boolean isSimpleConsumerGroup)
Create an instance with the specified parameters.ConsumerGroupListing(java.lang.String groupId, boolean isSimpleConsumerGroup, java.util.Optional<ConsumerGroupState> state)
Create an instance with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
groupId()
Consumer Group Idint
hashCode()
boolean
isSimpleConsumerGroup()
If Consumer Group is simple or not.java.util.Optional<ConsumerGroupState>
state()
Consumer Group statejava.lang.String
toString()
-
-
-
Constructor Detail
-
ConsumerGroupListing
public ConsumerGroupListing(java.lang.String groupId, boolean isSimpleConsumerGroup)
Create an instance with the specified parameters.- Parameters:
groupId
- Group IdisSimpleConsumerGroup
- If consumer group is simple or not.
-
ConsumerGroupListing
public ConsumerGroupListing(java.lang.String groupId, boolean isSimpleConsumerGroup, java.util.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
-
-
Method Detail
-
groupId
public java.lang.String groupId()
Consumer Group Id
-
isSimpleConsumerGroup
public boolean isSimpleConsumerGroup()
If Consumer Group is simple or not.
-
state
public java.util.Optional<ConsumerGroupState> state()
Consumer Group state
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-