protected static class JSR356ClientConnector.WSClientEndpoint extends WebObjectSocket
| Modifier and Type | Field and Description |
|---|---|
protected javax.websocket.Session |
session |
protected org.nustaq.kontraktor.remoting.base.ObjectSink |
sink |
conf, isClosed, lastError, objects, sendSequence| Constructor and Description |
|---|
WSClientEndpoint(URI endpointURI,
org.nustaq.kontraktor.remoting.base.ObjectSink sink) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getConnectionIdentifier() |
int |
getId() |
org.nustaq.kontraktor.remoting.base.ObjectSink |
getSink() |
void |
onClose(javax.websocket.Session userSession,
javax.websocket.CloseReason reason) |
void |
onError(Throwable th) |
void |
onMessage(byte[] message) |
void |
onOpen(javax.websocket.Session userSession) |
void |
onTextMessage(String message) |
void |
sendBinary(byte[] message) |
void |
sendText(String message) |
void |
setSink(org.nustaq.kontraktor.remoting.base.ObjectSink sink) |
flush, getConf, getLastError, getObjectMaxBatchSize, getSendSequence, isClosed, setConf, setLastError, writeObjectprotected org.nustaq.kontraktor.remoting.base.ObjectSink sink
protected volatile javax.websocket.Session session
public WSClientEndpoint(URI endpointURI, org.nustaq.kontraktor.remoting.base.ObjectSink sink)
public org.nustaq.kontraktor.remoting.base.ObjectSink getSink()
public void setSink(org.nustaq.kontraktor.remoting.base.ObjectSink sink)
public void onOpen(javax.websocket.Session userSession)
public void onClose(javax.websocket.Session userSession,
javax.websocket.CloseReason reason)
public void onError(Throwable th)
public void onMessage(byte[] message)
public void onTextMessage(String message)
public void sendText(String message)
public void sendBinary(byte[] message)
sendBinary in class WebObjectSocketpublic void close()
throws IOException
IOExceptionpublic int getId()
public String getConnectionIdentifier()
Copyright © 2019. All rights reserved.