Package io.vertx.kafka.admin
Class MemberDescription
java.lang.Object
io.vertx.kafka.admin.MemberDescription
A detailed description of a single group instance in the cluster
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorMemberDescription(JsonObject json) Constructor (from JSON representation)MemberDescription(String consumerId, String clientId, String host, MemberAssignment assignment) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetHost()setAssignment(MemberAssignment assignment) Set the assignment of the group membersetClientId(String clientId) Set the client id of the group membersetConsumerId(String consumerId) Set the consumer id of the group memberSet the host where the group member is runningtoJson()Convert object to JSON representationtoString()
-
Constructor Details
-
MemberDescription
public MemberDescription()Constructor -
MemberDescription
public MemberDescription(String consumerId, String clientId, String host, MemberAssignment assignment) Constructor- Parameters:
consumerId- the consumer id of the group memberclientId- the client id of the group memberhost- the host where the group member is runningassignment- the assignment of the group member
-
MemberDescription
Constructor (from JSON representation)- Parameters:
json- JSON representation
-
-
Method Details
-
getConsumerId
- Returns:
- the consumer id of the group member
-
setConsumerId
Set the consumer id of the group member- Parameters:
consumerId- the consumer id of the group member- Returns:
- current instance of the class to be fluent
-
getClientId
- Returns:
- the client id of the group member
-
setClientId
Set the client id of the group member- Parameters:
clientId- the client id of the group member- Returns:
- current instance of the class to be fluent
-
getAssignment
- Returns:
- the assignment of the group member
-
setAssignment
Set the assignment of the group member- Parameters:
assignment- the assignment of the group member- Returns:
- current instance of the class to be fluent
-
getHost
- Returns:
- the host where the group member is running
-
setHost
Set the host where the group member is running- Parameters:
host- the host where the group member is running- Returns:
- current instance of the class to be fluent
-
toJson
Convert object to JSON representation- Returns:
- JSON representation
-
toString
-