Class MessageUtils

java.lang.Object
net.sodacan.core.util.MessageUtils

public class MessageUtils extends Object
  • Constructor Details

    • MessageUtils

      public MessageUtils()
  • Method Details

    • submit

      public static void submit(Config config, Message message)

      For testing only.

      This is a quick and dirty way to inject a message into a running Host. It does not call any message life-cycle methods. It just gets the message into the queue.

      Parameters:
      config -
      message -
    • submitToNewActor

      public static ActorId submitToNewActor(Config config, String actorType, Verb verb)
      Submit a new message to a new Actor
      Parameters:
      config - Configuration
      actorType - The type of actor to create
      verb - The verb to send to the actor
      Returns:
      The ActorId of the new actor