Package org.apache.flink.util.function
Interface RunnableWithException
-
- All Superinterfaces:
ThrowingRunnable<Exception>
- All Known Implementing Classes:
FutureTaskWithException
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Public @FunctionalInterface public interface RunnableWithException extends ThrowingRunnable<Exception>
Similar to aRunnable, this interface is used to capture a block of code to be executed. In contrast toRunnable, this interface allows throwing checked exceptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrun()The work method.
-
-
-
Method Detail
-
run
void run() throws Exception
The work method.- Specified by:
runin interfaceThrowingRunnable<Exception>- Throws:
Exception- Exceptions may be thrown.
-
-