public static final class ConsumerPartitionAssignor.Subscription extends Object
Constructor and Description |
---|
Subscription(List<String> topics) |
Subscription(List<String> topics,
ByteBuffer userData) |
Subscription(List<String> topics,
ByteBuffer userData,
List<TopicPartition> ownedPartitions) |
Subscription(List<String> topics,
ByteBuffer userData,
List<TopicPartition> ownedPartitions,
int generationId,
Optional<String> rackId) |
Modifier and Type | Method and Description |
---|---|
Optional<Integer> |
generationId() |
Optional<String> |
groupInstanceId() |
List<TopicPartition> |
ownedPartitions() |
Optional<String> |
rackId() |
void |
setGroupInstanceId(Optional<String> groupInstanceId) |
List<String> |
topics() |
String |
toString() |
ByteBuffer |
userData() |
public Subscription(List<String> topics, ByteBuffer userData, List<TopicPartition> ownedPartitions, int generationId, Optional<String> rackId)
public Subscription(List<String> topics, ByteBuffer userData, List<TopicPartition> ownedPartitions)
public Subscription(List<String> topics, ByteBuffer userData)
public ByteBuffer userData()
public List<TopicPartition> ownedPartitions()