Class BrokerAvailabilityEvent
- java.lang.Object
- java.util.EventObject
- org.springframework.context.ApplicationEvent
- org.springframework.messaging.simp.broker.BrokerAvailabilityEvent
- All Implemented Interfaces:
Serializable
public class BrokerAvailabilityEvent extends ApplicationEvent
Event raised when a broker's availabilty changes- Author:
- Andy Wilkinson
- See Also:
- Serialized Form
Field Summary
Fields inherited from class java.util.EventObject
source
Constructor Summary
Constructors Constructor Description BrokerAvailabilityEvent(boolean brokerAvailable, Object source)
Creates a newBrokerAvailabilityEvent
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBrokerAvailable()
String
toString()
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
Constructor Detail
BrokerAvailabilityEvent
public BrokerAvailabilityEvent(boolean brokerAvailable, Object source)
Creates a newBrokerAvailabilityEvent
.- Parameters:
brokerAvailable
-true
if 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 Detail
isBrokerAvailable
public boolean isBrokerAvailable()
toString
public String toString()
- Overrides:
toString
in classEventObject