Interface Agenda

    • Method Detail

      • isEmpty

        boolean isEmpty()
        Returns whether there currently are operations planned on the agenda.
      • getNextOperation

        Runnable getNextOperation()
        Get next operation from agenda and remove operation from the queue.
        Returns:
        next operation from the queue throws FlowableException in the case when agenda is empty
      • planOperation

        void planOperation​(Runnable operation)
        Plan operation for execution
        Parameters:
        operation - operation to run
      • planFutureOperation

        <V> void planFutureOperation​(CompletableFuture<V> future,
                                     BiConsumer<V,​Throwable> completeAction)
        Plan an operation for a future execution
        Type Parameters:
        V - the type of the value the future returns
        Parameters:
        future - the future that will return the value
        completeAction - the action that should be invoked once the future completes