public class WSHandlerJEE extends Object implements WSHandlerInterface, javax.websocket.MessageHandler
WSHandlerInterface.WSHandlerResponseInterface| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect(com.yoctopuce.YoctoAPI.YHTTPHub hub,
boolean first_notification_connection,
int mstimeout,
int notifAbsPos) |
String |
getThreadLabel() |
boolean |
isCallback() |
boolean |
isOpen() |
void |
onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason) |
void |
onMessage(ByteBuffer raw_data,
javax.websocket.Session session) |
void |
onOpen(javax.websocket.Session session) |
void |
sendBinary(ByteBuffer partialByte,
boolean isLast) |
public void connect(com.yoctopuce.YoctoAPI.YHTTPHub hub,
boolean first_notification_connection,
int mstimeout,
int notifAbsPos)
throws YAPI_Exception
connect in interface WSHandlerInterfaceYAPI_Exceptionpublic void close()
close in interface WSHandlerInterfacepublic boolean isOpen()
isOpen in interface WSHandlerInterfacepublic void onOpen(javax.websocket.Session session)
public void onMessage(ByteBuffer raw_data, javax.websocket.Session session)
public void sendBinary(ByteBuffer partialByte, boolean isLast) throws YAPI_Exception
sendBinary in interface WSHandlerInterfaceYAPI_Exceptionpublic void onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason)
public String getThreadLabel()
getThreadLabel in interface WSHandlerInterfacepublic boolean isCallback()
isCallback in interface WSHandlerInterfaceCopyright © 2021. All rights reserved.