Package akka.actor

Examples of akka.actor.ActorSystem.shutdown()


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

    _system.shutdown();

  }

}
View Full Code Here


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

    _system.shutdown();

  }

}
View Full Code Here

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

    _system.shutdown();

  }
}
View Full Code Here

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

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

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

    _system.shutdown();

  }
}
View Full Code Here

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

    for (int i = 1; i <= 10; i++) {
      // sends randomly to actors
      randomRouter.tell(i);
    }
    _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

    for (int i = 1; i <= 10; i++) {
      // sends randomly to actors
      randomRouter.tell(i);
    }
    _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

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.