Package org.springframework.kafka.event
Class ConcurrentContainerStoppedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.kafka.event.KafkaEvent
org.springframework.kafka.event.ConcurrentContainerStoppedEvent
- All Implemented Interfaces:
Serializable
An event published when a concurrent container is stopped.
- Since:
- 3.3
- Author:
- Lokesh Alamuri
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionConcurrentContainerStoppedEvent
(Object source, ConsumerStoppedEvent.Reason reason) Construct an instance with the provided source and container. -
Method Summary
Methods inherited from class org.springframework.kafka.event.KafkaEvent
getContainer, getSource
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
ConcurrentContainerStoppedEvent
Construct an instance with the provided source and container.- Parameters:
source
- the container instance that generated the event.reason
- the reason.
-
-
Method Details
-
getReason
Return the reason why the container was stopped.- Returns:
- the reason.
-
toString
- Overrides:
toString
in classEventObject
-