Interface ProgressManager.ProgressHandler<T>

  • Type Parameters:
    T - The progress return type.
    Enclosing class:
    ProgressManager
    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 ProgressManager.ProgressHandler<T>
    Interface for handling progress synchronously.
    • Method Detail

      • handle

        T handle​(Flow.Subscriber<Progress> progress)
          throws Exception
        Handle progress and return value.
        Parameters:
        progress - Flow for reporting progress.
        Returns:
        The end result when progress is done.
        Throws:
        Exception - If failing to handle the task.