@Component public class StompBrokerAvailabilityListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.messaging.simp.broker.BrokerAvailabilityEvent>
| 构造器和说明 |
|---|
StompBrokerAvailabilityListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onApplicationEvent(org.springframework.messaging.simp.broker.BrokerAvailabilityEvent brokerAvailabilityEvent)
来自ApplicationListener的接口
监听 "system" connection to the broker is lost and re-established
TODO: SimpMessagingTemplate should subscribe to this event and avoid sending messages at times when the broker is not available.
|
public void onApplicationEvent(org.springframework.messaging.simp.broker.BrokerAvailabilityEvent brokerAvailabilityEvent)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.messaging.simp.broker.BrokerAvailabilityEvent>brokerAvailabilityEvent - eventCopyright © 2019. All rights reserved.