Class ListenerContainerConsumerFailedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.amqp.event.AmqpEvent
org.springframework.amqp.rabbit.listener.ListenerContainerConsumerFailedEvent
- All Implemented Interfaces:
Serializable
Published when a listener consumer fails.
- Since:
- 1.5
- Author:
- Gary Russell
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionListenerContainerConsumerFailedEvent
(Object source, String reason, Throwable throwable, boolean fatal) Construct an instance with the provided arguments. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
ListenerContainerConsumerFailedEvent
public ListenerContainerConsumerFailedEvent(Object source, String reason, @Nullable Throwable throwable, boolean fatal) Construct an instance with the provided arguments.- Parameters:
source
- the source container.reason
- the reason.throwable
- the throwable.fatal
- true if the startup failure was fatal (will not be retried).
-
-
Method Details
-
getReason
-
isFatal
public boolean isFatal() -
getThrowable
-
toString
- Overrides:
toString
in classEventObject
-