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 ITridentPartitionManager
public void close()
close
in interface ITridentPartitionManager
public List<EventDataWrap> receiveBatch(String offset, int count)
ITridentPartitionManager
receive a batch of messages from EvenHub up to “count” messages.
receiveBatch
in interface ITridentPartitionManager
offset
- the starting offsetcount
- max number of messages in this batchCopyright © 2019 The Apache Software Foundation. All rights reserved.