public class MemberDescription extends Object
Constructor and Description |
---|
MemberDescription()
Constructor
|
MemberDescription(JsonObject json)
Constructor (from JSON representation)
|
MemberDescription(String consumerId,
String clientId,
String host,
MemberAssignment assignment)
Constructor
|
Modifier and Type | Method and Description |
---|---|
MemberAssignment |
getAssignment() |
String |
getClientId() |
String |
getConsumerId() |
String |
getHost() |
MemberDescription |
setAssignment(MemberAssignment assignment)
Set the assignment of the group member
|
MemberDescription |
setClientId(String clientId)
Set the client id of the group member
|
MemberDescription |
setConsumerId(String consumerId)
Set the consumer id of the group member
|
MemberDescription |
setHost(String host)
Set the host where the group member is running
|
JsonObject |
toJson()
Convert object to JSON representation
|
String |
toString() |
public MemberDescription()
public MemberDescription(String consumerId, String clientId, String host, MemberAssignment assignment)
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 memberpublic MemberDescription(JsonObject json)
json
- JSON representationpublic String getConsumerId()
public MemberDescription setConsumerId(String consumerId)
consumerId
- the consumer id of the group memberpublic String getClientId()
public MemberDescription setClientId(String clientId)
clientId
- the client id of the group memberpublic MemberAssignment getAssignment()
public MemberDescription setAssignment(MemberAssignment assignment)
assignment
- the assignment of the group memberpublic String getHost()
public MemberDescription setHost(String host)
host
- the host where the group member is runningpublic JsonObject toJson()
Copyright © 2023 Eclipse. All rights reserved.