Interface SingletonTask.Worker

  • Enclosing class:

    public static interface SingletonTask.Worker
    • Method Detail

      • work

        CompletableFuture<?> work()
        Executes a unit of work.

        If there is no work to do, this shouldn't do anything.

        A future completing when the executor is allowed to call this method again.
      • complete

        void complete()
        Executes any outstanding operation, or schedule their execution.

        Called when the worker is not expected to work in the foreseeable future.