Interface Task

All Known Subinterfaces:
RetryableTask
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 interface Task
A Task can be done by an Actor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Perform this Task as the given Actor.
  • Method Details

    • performAs

      void performAs(Actor actor)
      Perform this Task as the given Actor.
      Parameters:
      actor - the Actor to perform this.