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 java.lang.ref.WeakReference<org.nustaq.kontraktor.remoting.base.ObjectSink>sinkprotected java.lang.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()java.lang.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
-
sendSid
protected boolean sendSid -
sendStrings
protected boolean sendStrings -
channel
protected io.undertow.websockets.core.WebSocketChannel channel -
ex
protected io.undertow.websockets.spi.WebSocketHttpExchange ex -
sink
protected java.lang.ref.WeakReference<org.nustaq.kontraktor.remoting.base.ObjectSink> sink -
uuid
protected java.lang.String uuid
-
-
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
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
getConnectionIdentifier
public java.lang.String 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()
-