Tabnine Logo
NullActorAgent
Code IndexAdd Tabnine to your IDE (free)

How to use
NullActorAgent
in
co.vaughnvernon.actormodel.actor

Best Java code snippets using co.vaughnvernon.actormodel.actor.NullActorAgent (Showing top 5 results out of 315)

origin: VaughnVernon/ActorModel

  /**
   * Constructs my default state.
   */
  private NullFuture() {
    super();

    this.nullActorAgent = NullActorAgent.instance();
  }
}
origin: VaughnVernon/ActorModel

/**
 * @see co.vaughnvernon.actormodel.actor.Actor#sender()
 */
@Override
public ActorAgent sender() {
  return NullActorAgent.instance();
}
origin: VaughnVernon/ActorModel

protected void sendTo(Message aMessage, boolean isForFuture) {
  ActorAgent agent = NullActorAgent.instance();
  this.sendTo(agent, aMessage, isForFuture);
}
origin: VaughnVernon/ActorModel

/**
 * @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;
}
origin: VaughnVernon/ActorModel

public void testCreateNullActorAgent() throws Exception {
  ActorAgent agent = NullActorAgent.instance();
  assertNotNull(agent);
}
co.vaughnvernon.actormodel.actorNullActorAgent

Javadoc

I am a NullObject implementation of an ActorAgent. I provide a special case, no-op implementation.

Most used methods

  • instance

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Kernel (java.awt.image)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now