Class ConnectionBlockedEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- org.springframework.amqp.event.AmqpEvent
-
- org.springframework.amqp.rabbit.connection.ConnectionBlockedEvent
-
- All Implemented Interfaces:
Serializable
public class ConnectionBlockedEvent extends AmqpEvent
TheAmqpEvent
emitted by theCachingConnectionFactory
when its connections are blocked.- Since:
- 2.0
- Author:
- Artem Bilan
- See Also:
BlockedListener.handleBlocked(String)
, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ConnectionBlockedEvent(Connection source, String reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
getConnection()
String
getReason()
-
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
ConnectionBlockedEvent
public ConnectionBlockedEvent(Connection source, String reason)
-
-
Method Detail
-
getConnection
public Connection getConnection()
-
getReason
public String getReason()
-
-