use of org.nustaq.kontraktor.remoting.encoding.Coding in project kontraktor by RuedigerMoeller.
the class BrowseriBabelify method get.
public static BrowseriBabelify get() {
synchronized (BrowseriBabelify.class) {
if (singleton == null) {
WebSocketConnectable webSocketConnectable = new WebSocketConnectable(BrowseriBabelify.class, url).coding(new Coding(SerializerType.JsonNoRef, BabelResult.class, BabelOpts.class));
singleton = (BrowseriBabelify) webSocketConnectable.connect((xy, e) -> System.out.println("disconnected " + xy)).await(1000);
}
}
return singleton;
}
use of org.nustaq.kontraktor.remoting.encoding.Coding in project kontraktor by RuedigerMoeller.
the class Service4Node method main.
public static void main(String[] args) {
// ensure we see also IO/close exceptions
Log.setLevel(Log.DEBUG);
Service4Node service = Actors.AsActor(Service4Node.class);
new WebSocketPublisher(service, "localhost", "/s4n", 8080).coding(new Coding(SerializerType.JsonNoRef, Pojo2Node.class)).sendStringMessages(true).publish(actor -> {
System.exit(0);
});
}
use of org.nustaq.kontraktor.remoting.encoding.Coding in project kontraktor by RuedigerMoeller.
the class RemotingTest method testHttp.
@Test
public void testHttp() throws Exception {
Coding coding = new Coding(SerializerType.FSTSer);
runtHttp(coding);
}
use of org.nustaq.kontraktor.remoting.encoding.Coding in project kontraktor by RuedigerMoeller.
the class RemotingTest method testNIOJSon.
@Test
public void testNIOJSon() throws Exception {
Coding coding = new Coding(SerializerType.JsonNoRef);
runNio(coding);
}
use of org.nustaq.kontraktor.remoting.encoding.Coding in project kontraktor by RuedigerMoeller.
the class RemotingTest method testWSJson.
@Test
public void testWSJson() throws Exception {
Coding coding = new Coding(SerializerType.JsonNoRef);
runWS(coding);
}
Aggregations