程序包 cool.scx.socket
类 TypeConverter
java.lang.Object
cool.scx.socket.ScxSocket
cool.scx.socket.PingPongManager
cool.scx.socket.TypeConverter
- 直接已知子类:
ScxSocketClient,ScxSocketClientConnect
便于使用
-
嵌套类概要
嵌套类 -
字段概要
从类继承的字段 cool.scx.socket.ScxSocket
clientID, duplicateFrameChecker, logger, options, sendTaskMap, webSocket -
构造器概要
构造器构造器说明TypeConverter(ScxSocketOptions options, String clientID) TypeConverter(TypeConverter typeConverter) -
方法概要
修饰符和类型方法说明<T> voidonEvent(String eventName, BiConsumer<T, TypeConverter.TypeRequest> onEvent, com.fasterxml.jackson.core.type.TypeReference<T> tClass) <T> voidonEvent(String eventName, BiConsumer<T, TypeConverter.TypeRequest> onEvent, Class<T> tClass) <T> voidonEvent(String eventName, Consumer<T> onEvent, com.fasterxml.jackson.core.type.TypeReference<T> tClass) <T> void<T> voidonEvent(String eventName, Function<T, ?> onEvent, com.fasterxml.jackson.core.type.TypeReference<T> tClass) <T> voidvoidvoidsend(Object data, SendOptions options) voidvoidsendEvent(String eventName, Object data, SendOptions options) voidvoid<T> voidsendEvent(String eventName, Object data, Consumer<T> responseCallback, com.fasterxml.jackson.core.type.TypeReference<T> tClass) <T> voidsendEvent(String eventName, Object data, Consumer<T> responseCallback, SendOptions options, com.fasterxml.jackson.core.type.TypeReference<T> tClass) <T> voidsendEvent(String eventName, Object data, Consumer<T> responseCallback, SendOptions options, Class<T> tClass) <T> void从类继承的方法 cool.scx.socket.PingPongManager
close, doPingTimeout, doSocketFrame, startPing从类继承的方法 cool.scx.socket.ScxSocket
bind, callOnClose, callOnError, callOnEventWithCheckDuplicateAsync, callOnMessageWithCheckDuplicateAsync, callResponseCallback, callResponseCallbackAsync, clientID, closeWebSocket, doAck, doClose, doError, doMessage, doResponse, isClosed, onClose, onError, onEvent, onEvent, onEvent, onMessage, removeEvent, send, send, send, sendAck, sendEvent, sendEvent, sendEvent, sendEvent, sendResponse, setResponseCallback
-
构造器详细资料
-
TypeConverter
-
TypeConverter
-
-
方法详细资料
-
send
-
send
-
sendEvent
-
sendEvent
-
sendEvent
-
sendEvent
public void sendEvent(String eventName, Object data, Consumer<String> responseCallback, SendOptions options) -
sendEvent
-
sendEvent
public <T> void sendEvent(String eventName, Object data, Consumer<T> responseCallback, SendOptions options, Class<T> tClass) -
sendEvent
-
sendEvent
public <T> void sendEvent(String eventName, Object data, Consumer<T> responseCallback, SendOptions options, com.fasterxml.jackson.core.type.TypeReference<T> tClass) -
onEvent
-
onEvent
-
onEvent
-
onEvent
-
onEvent
public <T> void onEvent(String eventName, BiConsumer<T, TypeConverter.TypeRequest> onEvent, Class<T> tClass) -
onEvent
public <T> void onEvent(String eventName, BiConsumer<T, TypeConverter.TypeRequest> onEvent, com.fasterxml.jackson.core.type.TypeReference<T> tClass)
-