Esempio n. 1
0
 private final void run(
     String name, ActorFactory factory, Mailbox mailbox, FutureValue<Object> future) {
   Thread.currentThread().setName(name);
   Actor actor;
   try {
     actor = factory.newActor(name, mailboxes);
     assert null != actor;
   } catch (final Throwable t) {
     future.setException(t);
     return;
   }
   future.set(null);
   mailbox.activate();
   actor.run(mailbox);
 }
Esempio n. 2
0
 public Actor createActor(String name, String type) {
   return actorFactory.createActor(name, type);
 }