public interface HoodieMessageQueue<I,O> extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shuts down the queue, cleaning up the resources
|
Throwable |
getThrowable() |
void |
insertRecord(I t)
Insert a record into inner message queue.
|
boolean |
isEmpty() |
void |
markAsFailed(Throwable e)
API to allow producers and consumer to communicate termination due to failure.
|
Option<O> |
readNextRecord()
Read records from inner message queue.
|
void |
seal()
Seals the queue (for writing) preventing new records to be enqueued
|
long |
size()
Returns the number of elements in this queue.
|
long size()
void insertRecord(I t) throws Exception
Exceptionvoid markAsFailed(Throwable e)
Throwable getThrowable()
boolean isEmpty()
void seal()
void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2024 The Apache Software Foundation. All rights reserved.