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
public class ListenerContainerConsumerFailedEvent extends AmqpEvent
Published when a listener consumer fails.- Since:
- 1.5
- Author:
- Gary Russell
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ListenerContainerConsumerFailedEvent(Object source, String reason, Throwable throwable, boolean fatal)
Construct an instance with the provided arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getReason()
Throwable
getThrowable()
boolean
isFatal()
String
toString()
-
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Constructor Detail
-
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 Detail
-
getReason
public String getReason()
-
isFatal
public boolean isFatal()
-
getThrowable
public Throwable getThrowable()
-
toString
public String toString()
- Overrides:
toString
in classEventObject
-
-