Package co.paralleluniverse.actors.behaviors

Examples of co.paralleluniverse.actors.behaviors.ServerActor


    public static void main(String[] args) throws ExecutionException, InterruptedException {
        System.setProperty("galaxy.nodeId", Integer.toString(nodeId));
        System.setProperty("galaxy.port", Integer.toString(7050 + nodeId));
        System.setProperty("galaxy.slave_port", Integer.toString(8050 + nodeId));

        new Fiber(new ServerActor(new AbstractServerHandler<SumRequest, Integer, SumRequest>() {
            @Override
            public void init() throws SuspendExecution {
                super.init();
                Actor.currentActor().register("myServer");
                System.out.println(this.toString() + " is ready");

TOP

Related Classes of co.paralleluniverse.actors.behaviors.ServerActor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.