Package akka.actor

Examples of akka.actor.ActorSystem.shutdown()


    System.out.println("Result from child actor->" + result);

    //wait before shutting down the system
    Thread.sleep(500);
   
    _system.shutdown();

  }

}
View Full Code Here


    table.hit("DONE"); // cause the players to quit their threads.
    try {
      Thread.sleep(3000);
    } catch (InterruptedException e) {
    }
    _system.shutdown();
  }
}
View Full Code Here

    MyMessage deSerializedMessage = (MyMessage) serializer.fromBinary(
        bytes, MyMessage.class);

    System.out.println("The de-serialized message is as " + deSerializedMessage);

    system.shutdown();
  }

}
View Full Code Here

   
    master.tell(new Result(), null);
   
    Thread.sleep(500);
   
    _system.shutdown();
        System.out.println("Java done!");
  }
}
View Full Code Here

            StandaloneActorHandler standaloneHandler = new StandaloneActorHandler(system, client);
            standaloneHandler.handle(args);
        }
        else {
            System.out.println("Command not found");
            system.shutdown();
        }

    }

}
View Full Code Here

                client.retrieveMessages(system);
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            system.shutdown();
        }
    }

    private ActorSystem init() {
        Config config = ConfigFactory.parseString
View Full Code Here

    // received [a, b, c, a, b, c]

    // etc ...

    Thread.sleep(1000);
    system.shutdown();
  }
}
View Full Code Here

    // received [a, b, c, a, b, c]

    // etc ...

    Thread.sleep(1000);
    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.