-
- Type Parameters:
T- the type parameter
- 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 interface SupplierInterrupted<T>The interface Supplier interrupted. in order to be able to put the code that calls checked exceptions in lambda
-
-
Method Detail
-
get
T get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
Gets a result.- Returns:
- a result
- Throws:
java.lang.InterruptedException- the interrupted exceptionjava.util.concurrent.ExecutionException- the execution exceptionjava.util.concurrent.TimeoutException- the timeout exception
-
-