@Preview(value="3.0") public class StompBroker extends java.lang.Object implements WebSocketListenerSupplier
限定符和类型 | 字段和说明 |
---|---|
protected StompBrokerMedia |
brokerMedia |
protected ToStompWebSocketListener |
webSocketListener |
构造器和说明 |
---|
StompBroker() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addListener(int index,
StompListener listener)
添加服务端监听器
|
protected void |
addListener(StompListener listener)
添加服务端监听器
|
StompEmitter |
getEmitter()
获取服务端发送器
|
WebSocketListener |
getWebSocketListener()
获取 WebSocket 监听器(对接 WebSocket 体系)
|
protected void |
setBrokerDestinationPrefixes(java.lang.String... destinationPrefixes)
设置经理前缀
|
protected final ToStompWebSocketListener webSocketListener
protected final StompBrokerMedia brokerMedia
protected void setBrokerDestinationPrefixes(java.lang.String... destinationPrefixes)
protected void addListener(StompListener listener)
protected void addListener(int index, StompListener listener)
public WebSocketListener getWebSocketListener()
public StompEmitter getEmitter()