Class UndertowWebsocketServerConnector.UTWebObjectSocket
java.lang.Object
org.nustaq.kontraktor.remoting.websockets.WebObjectSocket
org.nustaq.kontraktor.remoting.http.undertow.UndertowWebsocketServerConnector.UTWebObjectSocket
- All Implemented Interfaces:
org.nustaq.kontraktor.remoting.base.ObjectSocket
- Enclosing class:
- UndertowWebsocketServerConnector
protected static class UndertowWebsocketServerConnector.UTWebObjectSocket extends WebObjectSocket
-
Field Summary
Fields Modifier and Type Field Description protected io.undertow.websockets.core.WebSocketChannelchannelprotected io.undertow.websockets.spi.WebSocketHttpExchangeexprotected booleansendSidprotected booleansendStringsprotected WeakReference<org.nustaq.kontraktor.remoting.base.ObjectSink>sinkprotected StringuuidFields inherited from class org.nustaq.kontraktor.remoting.websockets.WebObjectSocket
conf, isClosed, lastError, objects, sendSequence -
Constructor Summary
Constructors Constructor Description UTWebObjectSocket(io.undertow.websockets.spi.WebSocketHttpExchange ex, io.undertow.websockets.core.WebSocketChannel channel, boolean sendStrings, boolean sendSid) -
Method Summary
Modifier and Type Method Description voidclose()StringgetConnectionIdentifier()intgetId()org.nustaq.kontraktor.remoting.base.ObjectSinkgetSink()voidsendBinary(byte[] message)voidsetSink(org.nustaq.kontraktor.remoting.base.ObjectSink sink)Methods inherited from class org.nustaq.kontraktor.remoting.websockets.WebObjectSocket
flush, getConf, getLastError, getObjectMaxBatchSize, getSendSequence, isClosed, setConf, setLastError, writeObject
-
Field Details
-
Constructor Details
-
UTWebObjectSocket
public UTWebObjectSocket(io.undertow.websockets.spi.WebSocketHttpExchange ex, io.undertow.websockets.core.WebSocketChannel channel, boolean sendStrings, boolean sendSid)
-
-
Method Details
-
sendBinary
public void sendBinary(byte[] message)- Specified by:
sendBinaryin classWebObjectSocket
-
close
- Throws:
IOException
-
getConnectionIdentifier
-
getId
public int getId() -
setSink
public void setSink(org.nustaq.kontraktor.remoting.base.ObjectSink sink) -
getSink
public org.nustaq.kontraktor.remoting.base.ObjectSink getSink()
-