@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class BatchPushSource<T> extends Object implements BatchSource<T>
| Constructor and Description |
|---|
BatchPushSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(Record<T> record)
Send this message to be written to Pulsar.
|
int |
getQueueLength()
Get length of the queue that records are push onto.
|
void |
notifyError(Exception ex)
Allows the source to notify errors asynchronously.
|
Record<T> |
readNext()
Read data and return a record.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdiscover, open, prepareclosepublic Record<T> readNext() throws Exception
BatchSourcereadNext in interface BatchSource<T>Exceptionpublic void consume(Record<T> record)
record - next message from source which should be sent to a Pulsar topicpublic int getQueueLength()
public void notifyError(Exception ex)
ex - Copyright © 2017–2022 Apache Software Foundation. All rights reserved.