-
- 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 ConsumerInterrupted<T>The interface Consumer interrupted. in order to be able to put the code that calls checked exceptions in lambda
-
-
Method Detail
-
accept
void accept(T t) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
Accept.- Parameters:
t- the t- Throws:
java.lang.InterruptedException- the interrupted exceptionjava.util.concurrent.ExecutionException- the execution exceptionjava.util.concurrent.TimeoutException- the timeout exception
-
-