public class ConsumerStoppingEvent extends KafkaEvent
| Constructor and Description |
|---|
ConsumerStoppingEvent(java.lang.Object source,
org.apache.kafka.clients.consumer.Consumer<?,?> consumer,
java.util.Collection<org.apache.kafka.common.TopicPartition> partitions)
Deprecated.
|
ConsumerStoppingEvent(java.lang.Object source,
java.lang.Object container,
org.apache.kafka.clients.consumer.Consumer<?,?> consumer,
java.util.Collection<org.apache.kafka.common.TopicPartition> partitions)
Construct an instance with the provided source, consumer and partitions.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.kafka.clients.consumer.Consumer<?,?> |
getConsumer() |
java.util.Collection<org.apache.kafka.common.TopicPartition> |
getPartitions() |
java.lang.String |
toString() |
getContainer, getSource@Deprecated
public ConsumerStoppingEvent(java.lang.Object source,
org.apache.kafka.clients.consumer.Consumer<?,?> consumer,
java.util.Collection<org.apache.kafka.common.TopicPartition> partitions)
source - the container.consumer - the consumer.partitions - the partitions.public ConsumerStoppingEvent(java.lang.Object source,
java.lang.Object container,
org.apache.kafka.clients.consumer.Consumer<?,?> consumer,
java.util.Collection<org.apache.kafka.common.TopicPartition> partitions)
source - the container instance that generated the event.container - the container or the parent container if the container is a child.consumer - the consumer.partitions - the partitions.