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 availability changes.
Author:
Andy Wilkinson
See Also:
  • Constructor Details

    • BrokerAvailabilityEvent

      public BrokerAvailabilityEvent(boolean brokerAvailable, Object source)
      Creates a new BrokerAvailabilityEvent.
      Parameters:
      brokerAvailable - true if the broker is available, false otherwise
      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

    • isBrokerAvailable

      public boolean isBrokerAvailable()
    • toString

      public String toString()
      Overrides:
      toString in class EventObject