K - the type parameterV - the type parameterpublic interface Consumer<K,V>
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the consumer.
|
BaseConsumerConfig<K,V> |
getConfig()
Get the configuration for this consumer
|
ConsumeFailedException |
getConsumeResult()
Returns the result of the background consume task.
|
boolean |
isConsuming()
Indicated whether the consumer is still consuming, might return ConsumeFailedException if no
longer consuming because of an error
|
java.util.concurrent.Future<ConsumeFailedException> |
startConsuming()
Start the consuming process
|
ConsumeFailedException |
stopConsuming()
Stops consuming and disconnects
|
BaseConsumerConfig<K,V> getConfig()
java.util.concurrent.Future<ConsumeFailedException> startConsuming()
ConsumeFailedException stopConsuming()
boolean isConsuming()
ConsumeFailedException getConsumeResult()
void close()
close in interface java.lang.AutoCloseableCopyright © 2020–2021 Axual B.V.. All rights reserved.