Class 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
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • 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.lang.Object container, java.util.Collection<org.apache.kafka.common.TopicPartition> partitions, java.lang.String reason)
      Construct an instance with the provided source and partitions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<org.apache.kafka.common.TopicPartition> getPartitions()
      Return the paused partitions.
      java.lang.String toString()  
      • Methods inherited from class org.springframework.context.ApplicationEvent

        getTimestamp
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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
      • ConsumerPausedEvent

        public ConsumerPausedEvent​(java.lang.Object source,
                                   java.lang.Object container,
                                   java.util.Collection<org.apache.kafka.common.TopicPartition> partitions,
                                   java.lang.String reason)
        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.
        reason - the reason for the pause.
        Since:
        2.8.9
    • Method Detail

      • getPartitions

        public java.util.Collection<org.apache.kafka.common.TopicPartition> getPartitions()
        Return the paused partitions.
        Returns:
        the partitions.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.EventObject