public class TridentPartitionManager extends Object implements ITridentPartitionManager
| Constructor and Description |
|---|
TridentPartitionManager(EventHubSpoutConfig spoutConfig,
IEventHubReceiver receiver) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
open(String offset) |
List<EventDataWrap> |
receiveBatch(String offset,
int count)
receive a batch of messages from EvenHub up to “count” messages.
|
public TridentPartitionManager(EventHubSpoutConfig spoutConfig, IEventHubReceiver receiver)
public boolean open(String offset)
open in interface ITridentPartitionManagerpublic void close()
close in interface ITridentPartitionManagerpublic List<EventDataWrap> receiveBatch(String offset, int count)
ITridentPartitionManagerreceive a batch of messages from EvenHub up to “count” messages.
receiveBatch in interface ITridentPartitionManageroffset - the starting offsetcount - max number of messages in this batchCopyright © 2021 The Apache Software Foundation. All rights reserved.