@Stable public interface ObserveHandle extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stop the consumption.
|
java.util.List<Offset> |
getCommittedOffsets()
Retrieve currently committed offsets.
|
java.util.List<Offset> |
getCurrentOffsets() |
void |
resetOffsets(java.util.List<Offset> offsets)
Reset the consumption to given offsets.
|
void |
waitUntilReady()
Wait until the consumer is ready to read data.
|
void close()
close in interface java.lang.AutoCloseablejava.util.List<Offset> getCommittedOffsets()
void resetOffsets(java.util.List<Offset> offsets)
offsets - the offsets to reset the processing tojava.util.List<Offset> getCurrentOffsets()
void waitUntilReady()
throws java.lang.InterruptedException
java.lang.InterruptedException - when interrupted before the wait is doneCopyright © 2017–2021. All rights reserved.