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); }
public Actor createActor(String name, String type) { return actorFactory.createActor(name, type); }