public class GlueSimpleDirectSender extends Object implements GlueWebSocketDirectSender
Constructor and Description |
---|
GlueSimpleDirectSender() |
Modifier and Type | Method and Description |
---|---|
GlueAbstractWebSocketHandler |
getHandler()
자신의 handler를 return
|
void |
receiveCommand(String cmd)
Handler로부터 command를 수신할 때 호출됨.
|
void |
receiveDirectMessage(byte[] msg)
Handler로부터 direct message 수신할 때 호출됨.
|
void |
receiveDirectMessage(String msg)
Handler로부터 direct message 수신할 때 호출됨.
|
void |
setPropertiesMap(Map<String,String> propertiesMap) |
void |
setWebSocketHandler(GlueAbstractWebSocketHandler handler)
Message를 전송할 handler 를 설정한다.
|
public void setWebSocketHandler(GlueAbstractWebSocketHandler handler)
GlueWebSocketDirectSender
setWebSocketHandler
in interface GlueWebSocketDirectSender
public void receiveDirectMessage(String msg)
GlueWebSocketDirectSender
receiveDirectMessage
in interface GlueWebSocketDirectSender
msg
- text messagepublic void receiveDirectMessage(byte[] msg)
GlueWebSocketDirectSender
receiveDirectMessage
in interface GlueWebSocketDirectSender
msg
- binary messagepublic void receiveCommand(String cmd)
GlueWebSocketDirectSender
receiveCommand
in interface GlueWebSocketDirectSender
cmd
- Handler의 commandpublic GlueAbstractWebSocketHandler getHandler()
GlueWebSocketDirectSender
getHandler
in interface GlueWebSocketDirectSender
Copyright © 2023–2024 POSCO DX. All rights reserved.