Class BrokerAvailabilityEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.messaging.simp.broker.BrokerAvailabilityEvent
- All Implemented Interfaces:
Serializable
Event raised when a broker's availability changes.
- Author:
- Andy Wilkinson
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionBrokerAvailabilityEvent(boolean brokerAvailable, Object source) Creates a newBrokerAvailabilityEvent. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
BrokerAvailabilityEvent
Creates a newBrokerAvailabilityEvent.- Parameters:
brokerAvailable-trueif the broker is available, false otherwisesource- the component that is acting as the broker, or as a relay for an external broker, that has changed availability. Must not benull.
-
-
Method Details
-
isBrokerAvailable
public boolean isBrokerAvailable() -
toString
- Overrides:
toStringin classEventObject
-