Class JSR356ClientConnector

java.lang.Object
org.nustaq.kontraktor.remoting.websockets.JSR356ClientConnector
All Implemented Interfaces:
org.nustaq.kontraktor.remoting.base.ActorClientConnector

public class JSR356ClientConnector
extends java.lang.Object
implements org.nustaq.kontraktor.remoting.base.ActorClientConnector
Created by ruedi on 10/05/15. Connects to a websocket-published actor using JSR356 websocket API
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  JSR356ClientConnector.RemotingHelper  
    protected static class  JSR356ClientConnector.WSClientEndpoint  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static boolean DumpProtocol  

    Fields inherited from interface org.nustaq.kontraktor.remoting.base.ActorClientConnector

    OBJECT_MAX_BATCH_SIZE
  • Constructor Summary

    Constructors 
    Constructor Description
    JSR356ClientConnector​(java.lang.String uri)  
  • Method Summary

    Modifier and Type Method Description
    org.nustaq.kontraktor.IPromise closeClient()  
    org.nustaq.kontraktor.IPromise connect​(java.util.function.Function<org.nustaq.kontraktor.remoting.base.ObjectSocket,​org.nustaq.kontraktor.remoting.base.ObjectSink> factory)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • JSR356ClientConnector

      public JSR356ClientConnector​(java.lang.String uri) throws java.net.URISyntaxException
      Throws:
      java.net.URISyntaxException
  • Method Details

    • connect

      public org.nustaq.kontraktor.IPromise connect​(java.util.function.Function<org.nustaq.kontraktor.remoting.base.ObjectSocket,​org.nustaq.kontraktor.remoting.base.ObjectSink> factory) throws java.lang.Exception
      Specified by:
      connect in interface org.nustaq.kontraktor.remoting.base.ActorClientConnector
      Throws:
      java.lang.Exception
    • closeClient

      public org.nustaq.kontraktor.IPromise closeClient()
      Specified by:
      closeClient in interface org.nustaq.kontraktor.remoting.base.ActorClientConnector