Interface ActorSystemMessage


public interface ActorSystemMessage
This interface aims to provide the same information Message does. The point here is to allow thinner clients to interface with actor system without having to create classes for each message type.

Classes implementing this interface should not be annotation with Message If it is, the values provided by the Message annotation will take precedence over the ones provided by the object.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    The serialized payload data.
    Since Elastic Actors currently deserializes messages based on their class, this method should return the name of the class which the payload represents on the receiving end.
    default int
    Equivalent to Message.timeout()
    default boolean
    Equivalent to Message.durable()
  • Method Details

    • isDurable

      default boolean isDurable()
      Equivalent to Message.durable()
    • getTimeout

      default int getTimeout()
      Equivalent to Message.timeout()
    • getPayloadClass

      String getPayloadClass()
      Since Elastic Actors currently deserializes messages based on their class, this method should return the name of the class which the payload represents on the receiving end.
    • getPayload

      byte[] getPayload()
      The serialized payload data.