Package io.vertx.kafka.admin
Class ConsumerGroupListing
- java.lang.Object
-
- io.vertx.kafka.admin.ConsumerGroupListing
-
public class ConsumerGroupListing extends Object
A listing of a consumer group in the cluster.
-
-
Constructor Summary
Constructors Constructor Description ConsumerGroupListing()ConstructorConsumerGroupListing(JsonObject json)Constructor (from JSON representation)ConsumerGroupListing(String groupId, boolean isSimpleConsumerGroup)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGroupId()booleanisSimpleConsumerGroup()ConsumerGroupListingsetGroupId(String groupId)Set the consumer group idConsumerGroupListingsetSimpleConsumerGroup(boolean isSimpleConsumerGroup)Set if consumer group is simple or notJsonObjecttoJson()Convert object to JSON representationStringtoString()
-
-
-
Constructor Detail
-
ConsumerGroupListing
public ConsumerGroupListing()
Constructor
-
ConsumerGroupListing
public ConsumerGroupListing(String groupId, boolean isSimpleConsumerGroup)
Constructor- Parameters:
groupId- consumer group idisSimpleConsumerGroup- if consumer group is simple or not
-
ConsumerGroupListing
public ConsumerGroupListing(JsonObject json)
Constructor (from JSON representation)- Parameters:
json- JSON representation
-
-
Method Detail
-
getGroupId
public String getGroupId()
- Returns:
- consumer group id
-
setGroupId
public ConsumerGroupListing setGroupId(String groupId)
Set the consumer group id- Parameters:
groupId- consumer group id- Returns:
- current instance of the class to be fluent
-
isSimpleConsumerGroup
public boolean isSimpleConsumerGroup()
- Returns:
- if consumer group is simple or not
-
setSimpleConsumerGroup
public ConsumerGroupListing setSimpleConsumerGroup(boolean isSimpleConsumerGroup)
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
-
toJson
public JsonObject toJson()
Convert object to JSON representation- Returns:
- JSON representation
-
-