Interface Cascade.Stage.Actor.Context<I,O>

Type Parameters:
I - is the type of messages that the enclosing actor consumes.
O - is the type of messages that the enclosing actor produces.
Enclosing interface:
Cascade.Stage.Actor<I,O>

public static interface Cascade.Stage.Actor.Context<I,O>
Script Execution Context.
  • Method Details

    • actor

      Get the enclosing actor.
      Returns:
      the actor that owns this context.
    • offerTo

      boolean offerTo(I message)
      Offer a message to the enclosing actor.
      Parameters:
      message - is the message to send to the actor.
      Returns:
      true, if the message was successfully added to the underlying mailbox.
    • offerFrom

      boolean offerFrom(O message)
      Offer a message from the enclosing actor.
      Parameters:
      message - is the message to send from the actor.
      Returns:
      true, if the message was sent to every connected output.
    • sendTo

      default Cascade.Stage.Actor.Context<I,O> sendTo(I message)
      Send a message to the enclosing actor.
      Parameters:
      message - is the message to send to the actor.
      Returns:
      this.
    • sendFrom

      default Cascade.Stage.Actor.Context<I,O> sendFrom(O message)
      Send a message from the enclosing actor.
      Parameters:
      message - is the message to send from the actor.
      Returns:
      this.