public class BrokerAvailabilityEvent extends ApplicationEvent
source
Constructor and Description |
---|
BrokerAvailabilityEvent(boolean brokerAvailable,
Object source)
Creates a new
BrokerAvailabilityEvent . |
Modifier and Type | Method and Description |
---|---|
boolean |
isBrokerAvailable() |
String |
toString() |
getTimestamp
getSource
public BrokerAvailabilityEvent(boolean brokerAvailable, Object source)
BrokerAvailabilityEvent
.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 be null
.public boolean isBrokerAvailable()
public String toString()
toString
in class EventObject