Interface InterruptingProgressMonitor.InterruptableCode<T,E1 extends Throwable,E2 extends Throwable>

Type Parameters:
T - Type of the value returned by the code block.
E1 - Type of the exception thrown by the code block.
E2 - Type of the exception thrown by the code block.
Enclosing class:
InterruptingProgressMonitor
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 InterruptingProgressMonitor.InterruptableCode<T,E1 extends Throwable,E2 extends Throwable>
Block of code that is to be interrupted when monitor is cancelled.
  • Method Summary

    Modifier and Type
    Method
    Description
    run()
    Runs arbitrary code that can and may be interrupted.
  • Method Details

    • run

      T run() throws E1, E2
      Runs arbitrary code that can and may be interrupted.
      Returns:
      Arbitrary value that should be returned from this block of code.
      Throws:
      E1 - Arbitrary exception that could be thrown out of this block of code.
      E2 - Arbitrary exception that could be thrown out of this block of code.