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
|
Copyright © 2021 The Apache Software Foundation. All rights reserved.