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.WebSocketChannel channel  
    protected io.undertow.websockets.spi.WebSocketHttpExchange ex  
    protected boolean sendSid  
    protected boolean sendStrings  
    protected java.lang.ref.WeakReference<org.nustaq.kontraktor.remoting.base.ObjectSink> sink  
    protected java.lang.String uuid  

    Fields 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
    void close()  
    java.lang.String getConnectionIdentifier()  
    int getId()  
    org.nustaq.kontraktor.remoting.base.ObjectSink getSink()  
    void sendBinary​(byte[] message)  
    void setSink​(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      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:
      sendBinary in class WebObjectSocket
    • 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()