Class GlueSimpleDirectSender
java.lang.Object
com.poscoict.glueframework.websocket.GlueSimpleDirectSender
- All Implemented Interfaces:
GlueWebSocketDirectSender
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription자신의 handler를 returnvoid
receiveCommand
(String cmd) Handler로부터 command를 수신할 때 호출됨.void
receiveDirectMessage
(byte[] msg) Handler로부터 direct message 수신할 때 호출됨.void
Handler로부터 direct message 수신할 때 호출됨.void
setPropertiesMap
(Map<String, String> propertiesMap) void
Message를 전송할 handler 를 설정한다.
-
Constructor Details
-
GlueSimpleDirectSender
public GlueSimpleDirectSender()
-
-
Method Details
-
setWebSocketHandler
Description copied from interface:GlueWebSocketDirectSender
Message를 전송할 handler 를 설정한다.- Specified by:
setWebSocketHandler
in interfaceGlueWebSocketDirectSender
-
receiveDirectMessage
Description copied from interface:GlueWebSocketDirectSender
Handler로부터 direct message 수신할 때 호출됨.- Specified by:
receiveDirectMessage
in interfaceGlueWebSocketDirectSender
- Parameters:
msg
- text message
-
receiveDirectMessage
public void receiveDirectMessage(byte[] msg) Description copied from interface:GlueWebSocketDirectSender
Handler로부터 direct message 수신할 때 호출됨.- Specified by:
receiveDirectMessage
in interfaceGlueWebSocketDirectSender
- Parameters:
msg
- binary message
-
setPropertiesMap
-
receiveCommand
Description copied from interface:GlueWebSocketDirectSender
Handler로부터 command를 수신할 때 호출됨.- Specified by:
receiveCommand
in interfaceGlueWebSocketDirectSender
- Parameters:
cmd
- Handler의 command
-
getHandler
Description copied from interface:GlueWebSocketDirectSender
자신의 handler를 return- Specified by:
getHandler
in interfaceGlueWebSocketDirectSender
- Returns:
- GlueAbstractWebSocketHandler
-