org.springframework.messaging.simp.broker

Class BrokerAvailabilityEvent

  • All Implemented Interfaces:
    java.io.Serializable


    public class BrokerAvailabilityEvent
    extends ApplicationEvent
    Event raised when a broker's availability changes.
    Author:
    Andy Wilkinson
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor and Description
      BrokerAvailabilityEvent(boolean brokerAvailable, java.lang.Object source)
      Creates a new BrokerAvailabilityEvent.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean isBrokerAvailable() 
      java.lang.String toString() 
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BrokerAvailabilityEvent

        public BrokerAvailabilityEvent(boolean brokerAvailable,
                                       java.lang.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 Detail

      • isBrokerAvailable

        public boolean isBrokerAvailable()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.EventObject