Package org.springframework.kafka.event
Class ConsumerPausedEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- org.springframework.kafka.event.KafkaEvent
-
- org.springframework.kafka.event.ConsumerPausedEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class ConsumerPausedEvent extends KafkaEvent
An event published when a consumer is paused.- Since:
- 2.1.5
- Author:
- Gary Russell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConsumerPausedEvent(java.lang.Object source, java.lang.Object container, java.util.Collection<org.apache.kafka.common.TopicPartition> partitions)Construct an instance with the provided source and partitions.ConsumerPausedEvent(java.lang.Object source, java.util.Collection<org.apache.kafka.common.TopicPartition> partitions)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<org.apache.kafka.common.TopicPartition>getPartitions()java.lang.StringtoString()-
Methods inherited from class org.springframework.kafka.event.KafkaEvent
getContainer, getSource
-
-
-
-
Constructor Detail
-
ConsumerPausedEvent
@Deprecated public ConsumerPausedEvent(java.lang.Object source, java.util.Collection<org.apache.kafka.common.TopicPartition> partitions)Deprecated.Construct an instance with the provided source and partitions.- Parameters:
source- the container.partitions- the partitions.
-
ConsumerPausedEvent
public ConsumerPausedEvent(java.lang.Object source, java.lang.Object container, java.util.Collection<org.apache.kafka.common.TopicPartition> partitions)Construct an instance with the provided source and partitions.- Parameters:
source- the container instance that generated the event.container- the container or the parent container if the container is a child.partitions- the partitions.- Since:
- 2.2.1
-
-