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