类 EventManager
java.lang.Object
cool.scx.socket.event.EventManager
- 直接已知子类:
ScxSocket
事件管理器 每个事件只允许注册一次
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void_callOnClose(Void v) protected voidprotected voidprotected voidprotected final void_callOnEvent(ScxSocketFrame socketFrame) protected final void_callOnEventAsync(ScxSocketFrame socketFrame) protected void_callOnMessage(String message) protected void_callOnMessageAsync(String message) protected abstract ScxSocketRequestcreateRequest(long ack_id) voidvoidfinal voidonEvent(String eventName, BiConsumer<String, ScxSocketRequest> onEvent) final voidfinal voidvoidfinal voidremoveEvent(String eventName) protected abstract voidsendResponse(long ack_id, String responseData)
-
字段详细资料
-
eventHandlerMap
-
onMessage
-
onClose
-
onError
-
-
构造器详细资料
-
EventManager
-
EventManager
public EventManager()
-
-
方法详细资料
-
onMessage
-
onClose
-
onError
-
onEvent
-
onEvent
-
onEvent
-
_callOnMessage
-
_callOnClose
-
_callOnError
-
_callOnEvent
-
_callOnMessageAsync
-
_callOnCloseAsync
-
_callOnErrorAsync
-
_callOnEventAsync
-
sendResponse
-
createRequest
-
removeEvent
-