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 Link icon

    • Route Link icon

      public Route()
  • Method Details Link icon

    • getTarget Link icon

      public ActorId getTarget()
    • getVerb Link icon

      public Verb getVerb()
    • setTarget Link icon

      public void setTarget(ActorId target)
    • setVerb Link icon

      public void setVerb(Verb verb)
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object