Package org.akka.essentials.java.hotswap.example

Source Code of org.akka.essentials.java.hotswap.example.MyActorSystem

package org.akka.essentials.java.hotswap.example;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;

public class MyActorSystem {

  public static void main(String[] args) throws Exception {

    ActorSystem _system = ActorSystem.create("BecomeUnbecome");
    ActorRef pingPongActor = _system
        .actorOf(new Props(PingPongActor.class));

    pingPongActor.tell(PingPongActor.PING, pingPongActor);

    Thread.sleep(2000);

    _system.shutdown();

  }

}
TOP

Related Classes of org.akka.essentials.java.hotswap.example.MyActorSystem

TOP
Copyright © 2018 www.massapi.com. 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.