public interface WebSocketMessager extends WebSocketSessionListener
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
TYPE_QUEUE |
static String |
TYPE_TOPIC |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
deSubscribe(String command,
String type,
org.springframework.web.socket.WebSocketSession socketSession) |
default boolean |
deSubscribeQueue(String command,
org.springframework.web.socket.WebSocketSession socketSession) |
default boolean |
deSubscribeTopic(String command,
org.springframework.web.socket.WebSocketSession socketSession) |
int |
getSubscribeTotal(String command,
String type) |
void |
publish(String command,
String type,
WebSocketMessage message) |
default void |
publishQueue(String command,
WebSocketMessage message) |
default void |
publishTopic(String command,
WebSocketMessage message) |
boolean |
subscribe(String command,
String type,
org.springframework.web.socket.WebSocketSession socketSession) |
default boolean |
subscribeQueue(String command,
org.springframework.web.socket.WebSocketSession socketSession) |
default boolean |
subscribeTopic(String command,
org.springframework.web.socket.WebSocketSession socketSession) |
onSessionClose, onSessionConnectdefault void publishQueue(String command, WebSocketMessage message)
default void publishTopic(String command, WebSocketMessage message)
void publish(String command, String type, WebSocketMessage message)
boolean subscribe(String command, String type, org.springframework.web.socket.WebSocketSession socketSession)
default boolean subscribeQueue(String command, org.springframework.web.socket.WebSocketSession socketSession)
default boolean subscribeTopic(String command, org.springframework.web.socket.WebSocketSession socketSession)
boolean deSubscribe(String command, String type, org.springframework.web.socket.WebSocketSession socketSession)
default boolean deSubscribeQueue(String command, org.springframework.web.socket.WebSocketSession socketSession)
default boolean deSubscribeTopic(String command, org.springframework.web.socket.WebSocketSession socketSession)
Copyright © 2018. All rights reserved.