public class ConsumerPartitionAssignmentState
extends java.lang.Object
| Constructor and Description |
|---|
ConsumerPartitionAssignmentState() |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(pl.allegro.tech.hermes.api.SubscriptionName name,
java.util.Collection<java.lang.Integer> partitions) |
long |
currentTerm(pl.allegro.tech.hermes.api.SubscriptionName name) |
boolean |
isAssignedPartitionAtCurrentTerm(SubscriptionPartition subscriptionPartition) |
void |
revoke(pl.allegro.tech.hermes.api.SubscriptionName name,
java.util.Collection<java.lang.Integer> partitions) |
void |
revokeAll(pl.allegro.tech.hermes.api.SubscriptionName name) |
public void assign(pl.allegro.tech.hermes.api.SubscriptionName name,
java.util.Collection<java.lang.Integer> partitions)
public void revoke(pl.allegro.tech.hermes.api.SubscriptionName name,
java.util.Collection<java.lang.Integer> partitions)
public void revokeAll(pl.allegro.tech.hermes.api.SubscriptionName name)
public long currentTerm(pl.allegro.tech.hermes.api.SubscriptionName name)
public boolean isAssignedPartitionAtCurrentTerm(SubscriptionPartition subscriptionPartition)