Class JSR356ClientConnector.WSClientEndpoint

java.lang.Object
org.nustaq.kontraktor.remoting.websockets.WebObjectSocket
org.nustaq.kontraktor.remoting.websockets.JSR356ClientConnector.WSClientEndpoint
All Implemented Interfaces:
org.nustaq.kontraktor.remoting.base.ObjectSocket
Enclosing class:
JSR356ClientConnector

protected static class JSR356ClientConnector.WSClientEndpoint
extends WebObjectSocket
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected javax.websocket.Session session  
    protected org.nustaq.kontraktor.remoting.base.ObjectSink sink  

    Fields inherited from class org.nustaq.kontraktor.remoting.websockets.WebObjectSocket

    conf, isClosed, lastError, objects, sendSequence
  • Constructor Summary

    Constructors 
    Constructor Description
    WSClientEndpoint​(java.net.URI endpointURI, org.nustaq.kontraktor.remoting.base.ObjectSink sink)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    java.lang.String getConnectionIdentifier()  
    int getId()  
    org.nustaq.kontraktor.remoting.base.ObjectSink getSink()  
    void onClose​(javax.websocket.Session userSession, javax.websocket.CloseReason reason)  
    void onError​(java.lang.Throwable th)  
    void onMessage​(byte[] message)  
    void onOpen​(javax.websocket.Session userSession)  
    void onTextMessage​(java.lang.String message)  
    void sendBinary​(byte[] message)  
    void sendText​(java.lang.String 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

    • sink

      protected org.nustaq.kontraktor.remoting.base.ObjectSink sink
    • session

      protected volatile javax.websocket.Session session
  • Constructor Details

    • WSClientEndpoint

      public WSClientEndpoint​(java.net.URI endpointURI, org.nustaq.kontraktor.remoting.base.ObjectSink sink)
  • Method Details

    • getSink

      public org.nustaq.kontraktor.remoting.base.ObjectSink getSink()
    • setSink

      public void setSink​(org.nustaq.kontraktor.remoting.base.ObjectSink sink)
    • onOpen

      public void onOpen​(javax.websocket.Session userSession)
    • onClose

      public void onClose​(javax.websocket.Session userSession, javax.websocket.CloseReason reason)
    • onError

      public void onError​(java.lang.Throwable th)
    • onMessage

      public void onMessage​(byte[] message)
    • onTextMessage

      public void onTextMessage​(java.lang.String message)
    • sendText

      public void sendText​(java.lang.String message)
    • sendBinary

      public void sendBinary​(byte[] message)
      Specified by:
      sendBinary in class WebObjectSocket
    • close

      public void close() throws java.io.IOException
      Throws:
      java.io.IOException
    • getId

      public int getId()
    • getConnectionIdentifier

      public java.lang.String getConnectionIdentifier()