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:
java.io.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
-
-
Constructor Summary
Constructors Constructor Description ConnectionBlockedEvent(Connection source, java.lang.String reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
getConnection()
java.lang.String
getReason()
-
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
-
-
-
-
Constructor Detail
-
ConnectionBlockedEvent
public ConnectionBlockedEvent(Connection source, java.lang.String reason)
-
-
Method Detail
-
getConnection
public Connection getConnection()
-
getReason
public java.lang.String getReason()
-
-