public interface Consumer<T>
| Modifier and Type | Method and Description |
|---|---|
void |
consumeData(T data)
Some data has been produced.
|
void |
setDone()
No more data will be produced; done.
|
void |
setError(Throwable t)
No more data will be produced; error during production.
|
void consumeData(T data) throws InterruptedException
InterruptedExceptionvoid setDone()
throws InterruptedException
InterruptedExceptionvoid setError(Throwable t) throws InterruptedException
InterruptedExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.