Search in sources :

Example 1 with Krouter

use of org.nustaq.kontraktor.routers.Krouter in project kontraktor by RuedigerMoeller.

the class DummyService method main.

public static void main(String[] args) {
    DummyService serv = Actors.AsActor(DummyService.class);
    serv.init();
    Krouter krouter = (Krouter) Routing.registerService(new WebSocketConnectable().url("ws://localhost:8888/binary").actorClass(Krouter.class).serType(SerializerType.FSTSer), serv, x -> {
        System.out.println("discon " + x);
        System.exit(-1);
    }, true).await();
    Log.Info(DummyService.class, "service registered at krouter");
}
Also used : Krouter(org.nustaq.kontraktor.routers.Krouter) WebSocketConnectable(org.nustaq.kontraktor.remoting.websockets.WebSocketConnectable)

Aggregations

WebSocketConnectable (org.nustaq.kontraktor.remoting.websockets.WebSocketConnectable)1 Krouter (org.nustaq.kontraktor.routers.Krouter)1