public abstract class PartitionReceiveHandler extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
PartitionReceiveHandler(int maxEventCount) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
onError(Throwable error)
Implement this method to Listen to errors which lead to Closure of the
PartitionReceiveHandler pump. |
abstract void |
onReceive(Iterable<EventData> events)
user should implement this method to specify the action to be performed on the received events.
|
protected void |
setMaxEventCount(int value)
implementor of
onReceive(java.lang.Iterable<com.microsoft.azure.eventhubs.EventData>) can use this to set the limit on maximum EventData's that
can be received by the next onReceive(java.lang.Iterable<com.microsoft.azure.eventhubs.EventData>) call |
protected final void setMaxEventCount(int value)
onReceive(java.lang.Iterable<com.microsoft.azure.eventhubs.EventData>) can use this to set the limit on maximum EventData's that
can be received by the next onReceive(java.lang.Iterable<com.microsoft.azure.eventhubs.EventData>) callvalue - maximum EventData's to be received in the next onReceive(java.lang.Iterable<com.microsoft.azure.eventhubs.EventData>) callpublic abstract void onReceive(Iterable<EventData> events)
events - the list of fetched events from the corresponding PartitionReceiver.PartitionReceiver.receive(int)public abstract void onError(Throwable error)
PartitionReceiveHandler pump.error - fatal error encountered while running the PartitionReceiveHandler pumpCopyright © 2017. All rights reserved.