public static final class ConsumerPartitionAssignor.Subscription
extends java.lang.Object
Constructor and Description |
---|
Subscription(java.util.List<java.lang.String> topics) |
Subscription(java.util.List<java.lang.String> topics,
java.nio.ByteBuffer userData) |
Subscription(java.util.List<java.lang.String> topics,
java.nio.ByteBuffer userData,
java.util.List<TopicPartition> ownedPartitions) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
groupInstanceId() |
java.util.List<TopicPartition> |
ownedPartitions() |
void |
setGroupInstanceId(java.util.Optional<java.lang.String> groupInstanceId) |
java.util.List<java.lang.String> |
topics() |
java.nio.ByteBuffer |
userData() |
public Subscription(java.util.List<java.lang.String> topics, java.nio.ByteBuffer userData, java.util.List<TopicPartition> ownedPartitions)
public Subscription(java.util.List<java.lang.String> topics, java.nio.ByteBuffer userData)
public Subscription(java.util.List<java.lang.String> topics)
public java.util.List<java.lang.String> topics()
public java.nio.ByteBuffer userData()
public java.util.List<TopicPartition> ownedPartitions()
public void setGroupInstanceId(java.util.Optional<java.lang.String> groupInstanceId)
public java.util.Optional<java.lang.String> groupInstanceId()