接口的使用
org.redkale.net.http.WebSocketUserAddress
-
使用WebSocketUserAddress的程序包 程序包 说明 org.redkale.net.http HTTP协议包,提供HTTP协议服务器 -
-
org.redkale.net.http中WebSocketUserAddress的使用
实现WebSocketUserAddress的org.redkale.net.http中的类 修饰符和类型 类 说明 static class
WebSocketUserAddress.SimpleWebSocketUserAddress
返回WebSocketUserAddress的org.redkale.net.http中的方法 修饰符和类型 方法 说明 static WebSocketUserAddress
WebSocketUserAddress. create(Serializable userid, Collection<WebSocketAddress> addresses)
static WebSocketUserAddress
WebSocketUserAddress. create(Serializable userid, WebSocketAddress address)
static WebSocketUserAddress
WebSocketUserAddress. create(WebSocketUserAddress userAddress)
static WebSocketUserAddress
WebSocketUserAddress. createTopic(Serializable userid, String mqtopic, InetSocketAddress sncpAddress)
参数类型为WebSocketUserAddress的org.redkale.net.http中的方法 修饰符和类型 方法 说明 static WebSocketUserAddress
WebSocketUserAddress. create(WebSocketUserAddress userAddress)
CompletableFuture<Boolean>
WebSocketNode. existsWebSocket(WebSocketUserAddress userAddress)
判断指定用户是否WebSocket在线CompletableFuture<Integer>
WebSocketNode. forceCloseWebSocket(WebSocketUserAddress userAddress)
强制关闭用户WebSocketCompletableFuture<Integer>
WebSocketNode. sendAction(WebSocketAction action, WebSocketUserAddress... useraddrs)
向指定用户发送操作,先发送本地连接,再发送远程连接
如果当前WebSocketNode是远程模式,此方法只发送远程连接CompletableFuture<Integer>
WebSocketNode. sendMessage(Convert convert, Object message0, boolean last, WebSocketUserAddress... useraddrs)
向指定用户发送消息,先发送本地连接,再发送远程连接
如果当前WebSocketNode是远程模式,此方法只发送远程连接protected Map<WebSocketAddress,List<Serializable>>
WebSocketNode. userAddressToAddrMap(WebSocketUserAddress... useraddrs)
protected Serializable[]
WebSocketNode. userAddressToUserids(WebSocketUserAddress... useraddrs)
参数类型为WebSocketUserAddress的org.redkale.net.http中的构造器 构造器 说明 SimpleWebSocketUserAddress(WebSocketUserAddress userAddress)
-