AsyncCallbacks

akka.kafka.internal.PartitionAssignmentHelpers$.AsyncCallbacks
@InternalApi
final class AsyncCallbacks(subscription: AutoSubscription, sourceActor: ActorRef, partitionAssignedCB: AsyncCallback[Set[TopicPartition]], partitionRevokedCB: AsyncCallback[Set[TopicPartition]]) extends PartitionAssignmentHandler

Attributes

Source:
PartitionAssignmentHelpers.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def onAssign(assignedTps: Set[TopicPartition], consumer: RestrictedConsumer): Unit

Attributes

assignedTps

The list of partitions that are now assigned to the consumer (may include partitions previously assigned to the consumer)

consumer

The akka.kafka.RestrictedConsumer gives some access to the internally used Consumer

Definition Classes
Source:
PartitionAssignmentHelpers.scala
override def onLost(lostTps: Set[TopicPartition], consumer: RestrictedConsumer): Unit

Called when partition metadata has changed and partitions no longer exist. This can occur if a topic is deleted or if the leader's metadata is stale. See org.apache.kafka.clients.consumer.ConsumerRebalanceListener#onPartitionsLost

Called when partition metadata has changed and partitions no longer exist. This can occur if a topic is deleted or if the leader's metadata is stale. See org.apache.kafka.clients.consumer.ConsumerRebalanceListener#onPartitionsLost

Attributes

consumer

The akka.kafka.RestrictedConsumer gives some access to the internally used Consumer

lostTps

The list of partitions that are no longer valid

Definition Classes
Source:
PartitionAssignmentHelpers.scala
override def onRevoke(revokedTps: Set[TopicPartition], consumer: RestrictedConsumer): Unit

Attributes

consumer

The akka.kafka.RestrictedConsumer gives some access to the internally used Consumer

revokedTps

The list of partitions that were revoked from the consumer

Definition Classes
Source:
PartitionAssignmentHelpers.scala
override def onStop(revokedTps: Set[TopicPartition], consumer: RestrictedConsumer): Unit

Attributes

consumer

The akka.kafka.RestrictedConsumer gives some access to the internally used Consumer

currentTps

The list of partitions that are currently assigned to the consumer

Definition Classes
Source:
PartitionAssignmentHelpers.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any
Source:
PartitionAssignmentHelpers.scala