Class Route

java.lang.Object
net.sodacan.core.Route

public class Route extends Object

A message route carries the information needed to get a message to where it is going and what it's purpose is when it gets there. Routes in a message are organized into a stack to facilitate complex message flows. The top of the stack describes where the message is currently heading. The bottom of the stack is often the Actor that initiated the message in the first place or perhaps a different reply-to Actor.

The verb field in a route must be defined within the target actor. In other words, you can't ask an actor to do something that that Actor hasn't declared that it is capable of doing it.

  • Constructor Details

    • Route

      public Route()
  • Method Details

    • getTarget

      public ActorId getTarget()
    • getVerb

      public Verb getVerb()
    • setTarget

      public void setTarget(ActorId target)
    • setVerb

      public void setVerb(Verb verb)
    • toString

      public String toString()
      Overrides:
      toString in class Object