Package akka.actor

Examples of akka.actor.ActorSystem.shutdown()


            public void onSuccess(Integer count) {
                System.out.println("Count is " + count);
            }
        });

        system.shutdown();
    }
}
View Full Code Here


    log.info("Sending value \"String\", IllegalArgumentException should be thrown! Our Supervisor strategy says Stop !");

    supervisor.tell(String.valueOf("Do Something"));

    log.info("Worker Actor shutdown !");
    system.shutdown();

  }

}
View Full Code Here

    Thread.sleep(5000);

    supervisor.tell(Integer.valueOf(10));

    system.shutdown();
  }

}
View Full Code Here

        ProcessOrderActor.class));
    processOrder.tell(Integer.valueOf(456));

    Thread.sleep(5000);

    _system.shutdown();
  }

}
View Full Code Here

    fileReadActor.tell(fileName,actor);

    remoteActor.tell("DISPLAY_LIST");

    system.shutdown();

  }

  public void shutdown() {
    // TODO Auto-generated method stub
View Full Code Here

    pingPongActor.tell(PingPongActor.PING, pingPongActor);

    Thread.sleep(2000);

    _system.shutdown();

  }

}
View Full Code Here

    // Get access to the ActorRef
    ActorRef calActor = TypedActor.get(_system).getActorRefFor(calculator);
    // call actor with a message
    calActor.tell("Hi there");
   
    _system.shutdown();

  }

}
View Full Code Here

        .load().getConfig("LocalSys"));
    ActorRef localActor = _system.actorOf(new Props(LocalActor.class));
    localActor.tell("Hello");

    Thread.sleep(5000);
    _system.shutdown();
  }
}
View Full Code Here

        .get(_system);

    System.out.println(mysqlSetting.DB_NAME);
    System.out.println(mysqlSetting.DB_URL);

    _system.shutdown();
  }

  /**
   * @param args
   */
 
View Full Code Here

    for (int i = 0; i < 5; i++) {
      actor.tell(i);
    }

    _system.shutdown();

  }
}
View Full Code Here

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.