/** * Constructs my default state. */ private NullFuture() { super(); this.nullActorAgent = NullActorAgent.instance(); } }
/** * @see co.vaughnvernon.actormodel.actor.Actor#sender() */ @Override public ActorAgent sender() { return NullActorAgent.instance(); }
protected void sendTo(Message aMessage, boolean isForFuture) { ActorAgent agent = NullActorAgent.instance(); this.sendTo(agent, aMessage, isForFuture); }
/** * @see co.vaughnvernon.actormodel.actor.ActorRegistry#actorRegisteredAs(java.lang.Class, co.vaughnvernon.actormodel.actor.Address) */ public ActorAgent actorRegisteredAs(Class<? extends Actor> anActorType, Address anAddress) { ActorAgent agent = null; Actor actor = this.readActor(anActorType, anAddress); if (actor == null) { agent = NullActorAgent.instance(); } else { agent = this.actorAgentFor(anActorType, actor); } return agent; }
public void testCreateNullActorAgent() throws Exception { ActorAgent agent = NullActorAgent.instance(); assertNotNull(agent); }