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

Type Parameters:
I - is the type of messages that the actor will consume.
O - is the type of messages that the actor will produce.
Enclosing interface:
Cascade.Stage.Actor<I,O>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Cascade.Stage.Actor.FunctionScript<I,O>
Actor Behavior.
  • Method Summary

    Modifier and Type
    Method
    Description
    onInput(I input)
    This method will be invoked by the enclosing actor in order to process all incoming messages.
  • Method Details

    • onInput

      O onInput(I input) throws Throwable
      This method will be invoked by the enclosing actor in order to process all incoming messages.
      Parameters:
      input - is being processed by the actor using this script.
      Returns:
      the output message to send from the actor, or null, if the actor shall not produce an output for the given input.
      Throws:
      Throwable - or a sub-class thereof, at the discretion of the implementation.