Class ConsumerPartitionAssignmentState
java.lang.Object
pl.allegro.tech.hermes.consumers.consumer.offset.ConsumerPartitionAssignmentState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassign(pl.allegro.tech.hermes.api.SubscriptionName name, Collection<Integer> partitions) longcurrentTerm(pl.allegro.tech.hermes.api.SubscriptionName name) booleanisAssignedPartitionAtCurrentTerm(SubscriptionPartition subscriptionPartition) voidrevoke(pl.allegro.tech.hermes.api.SubscriptionName name, Collection<Integer> partitions) voidrevokeAll(pl.allegro.tech.hermes.api.SubscriptionName name)
-
Constructor Details
-
ConsumerPartitionAssignmentState
public ConsumerPartitionAssignmentState()
-
-
Method Details
-
assign
public void assign(pl.allegro.tech.hermes.api.SubscriptionName name, Collection<Integer> partitions) -
revoke
public void revoke(pl.allegro.tech.hermes.api.SubscriptionName name, Collection<Integer> partitions) -
revokeAll
public void revokeAll(pl.allegro.tech.hermes.api.SubscriptionName name) -
currentTerm
public long currentTerm(pl.allegro.tech.hermes.api.SubscriptionName name) -
isAssignedPartitionAtCurrentTerm
-