Top Description Fields Constructors Methods
org.springframework.messaging.simp.broker

public Class BrokerAvailabilityEvent

extends ApplicationEvent
Class Inheritance
Imports
org.springframework.context.ApplicationEvent

Event raised when a broker's availability changes.
Author
Andy Wilkinson

Field Summary

Modifier and TypeField and Description
private final boolean
private static final long

Constructor Summary

AccessConstructor and Description
public
BrokerAvailabilityEvent(boolean
true if the broker is available, false otherwise
brokerAvailable
,
Object
the component that is acting as the broker, or as a relay for an external broker, that has changed availability. Must not be null.
source
)

Creates a new BrokerAvailabilityEvent.

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.util.EventObject.toString.

Returns a String representation of this EventObject.

Inherited from org.springframework.context.ApplicationEvent:
getTimestamp

Field Detail

brokerAvailableback to summary
private final boolean brokerAvailable
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.springframework.context.ApplicationEvent.serialVersionUID.

Constructor Detail

BrokerAvailabilityEventback to summary
public BrokerAvailabilityEvent(boolean brokerAvailable, Object source)

Creates a new BrokerAvailabilityEvent.

Parameters
brokerAvailable:boolean

true if the broker is available, false otherwise

source:Object

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

isBrokerAvailableback to summary
public boolean isBrokerAvailable()
toStringback to summary
public String toString()

Overrides java.util.EventObject.toString.

Doc from java.util.EventObject.toString.

Returns a String representation of this EventObject.

Returns:String

a String representation of this EventObject

Annotations
@Override