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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.undertow.websockets.core.WebSocketChannelprotected io.undertow.websockets.spi.WebSocketHttpExchangeprotected booleanprotected booleanprotected WeakReference<org.nustaq.kontraktor.remoting.base.ObjectSink>protected StringFields inherited from class org.nustaq.kontraktor.remoting.websockets.WebObjectSocket
conf, isClosed, lastError, objects, sendSequence -
Constructor Summary
ConstructorsConstructorDescriptionUTWebObjectSocket(io.undertow.websockets.spi.WebSocketHttpExchange ex, io.undertow.websockets.core.WebSocketChannel channel, boolean sendStrings, boolean sendSid) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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, writeObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nustaq.kontraktor.remoting.base.ObjectSocket
canWrite
-
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
-
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
- 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()
-