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 SummaryFields inherited from class EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionBrokerAvailabilityEvent(boolean brokerAvailable, Object source) Creates a newBrokerAvailabilityEvent.
- 
Method SummaryMethods inherited from class ApplicationEventgetTimestampMethods inherited from class EventObjectgetSource
- 
Constructor Details- 
BrokerAvailabilityEventCreates a newBrokerAvailabilityEvent.- Parameters:
- brokerAvailable-- trueif the broker is available,- falseotherwise
- source- the component that is acting as the broker, or as a relay for an external broker, that has changed availability. Must not be- null.
 
 
- 
- 
Method Details- 
isBrokerAvailablepublic boolean isBrokerAvailable()
- 
toString- Overrides:
- toStringin class- EventObject
 
 
-