public interface PartitionReceiveHandler
EventDatas from Microsoft Azure EventHubs. Use any implementation of this abstract class to specify
user action when using PartitionReceiver's setReceiveHandler().| Modifier and Type | Method and Description |
|---|---|
int |
getMaxEventCount()
Maximum number of
EventData to supply while invoking onReceive(Iterable) |
void |
onError(Throwable error)
Implement this method to Listen to errors which lead to Closure of the
PartitionReceiveHandler pump. |
void |
onReceive(Iterable<EventData> events)
user should implement this method to specify the action to be performed on the received events.
|
int getMaxEventCount()
EventData to supply while invoking onReceive(Iterable)
Ensure that the value should be less than or equal to the value of ReceiverOptions.getPrefetchCount()
EventData to supply while invoking onReceive(Iterable)void onReceive(Iterable<EventData> events)
events - the list of fetched events from the corresponding PartitionReceiver.PartitionReceiver.receive(int)void onError(Throwable error)
PartitionReceiveHandler pump.error - fatal error encountered while running the PartitionReceiveHandler pumpCopyright © 2019. All rights reserved.