T
- the type of the input to the operation@FunctionalInterface public interface BlockingConsumer<T>
Consumer
that can be blocked and interrupted.Modifier and Type | Method and Description |
---|---|
void |
accept(T t)
Performs this operation on the given argument.
|
void accept(T t) throws InterruptedException
t
- the input argumentInterruptedException
- if the calling thread is interrupted while blockingCopyright © 2017 JBoss by Red Hat. All rights reserved.