Interface ActorHandler

    • Method Detail

      • getActorHandlerInfo

        ActorHandlerInfo getActorHandlerInfo()
        Returns some information about the actor handler, e.g., whether it can contain standalones and the actor execution.
        Returns:
        the info
      • check

        String check()
        Performs checks on the "sub-actors".
        Returns:
        null if everything is fine, otherwise the error
      • size

        int size()
        Returns the size of the group.
        Returns:
        the size
      • get

        Actor get​(int index)
        Returns the actor at the given position.
        Parameters:
        index - the position
        Returns:
        the actor
      • set

        String set​(int index,
                   Actor actor)
        Sets the actor at the given position.
        Parameters:
        index - the position
        actor - the actor to set at this position
        Returns:
        null if successful, otherwise error message
      • indexOf

        int indexOf​(String actor)
        Returns the index of the actor.
        Parameters:
        actor - the name of the actor to look for
        Returns:
        the index of -1 if not found
      • firstActive

        Actor firstActive()
        Returns the first non-skipped actor.
        Returns:
        the first 'active' actor, null if none available
      • lastActive

        Actor lastActive()
        Returns the last non-skipped actor.
        Returns:
        the last 'active' actor, null if none available
      • flushExecution

        void flushExecution()
        Stops the processing of tokens without stopping the flow.
        Specified by:
        flushExecution in interface Flushable