public class PartitionManager extends SimplePartitionManager
committedOffset, config, lastOffset, receiver
Constructor and Description |
---|
PartitionManager(EventHubSpoutConfig spoutConfig,
String partitionId,
IStateStore stateStore,
IEventHubReceiver receiver) |
Modifier and Type | Method and Description |
---|---|
void |
ack(String offset) |
void |
fail(String offset) |
protected String |
getCompletedOffset() |
EventDataWrap |
receive() |
checkpoint, close, getMetricsData, open
public PartitionManager(EventHubSpoutConfig spoutConfig, String partitionId, IStateStore stateStore, IEventHubReceiver receiver)
public EventDataWrap receive()
receive
in interface IPartitionManager
receive
in class SimplePartitionManager
public void ack(String offset)
ack
in interface IPartitionManager
ack
in class SimplePartitionManager
public void fail(String offset)
fail
in interface IPartitionManager
fail
in class SimplePartitionManager
protected String getCompletedOffset()
getCompletedOffset
in class SimplePartitionManager
Copyright © 2022 The Apache Software Foundation. All rights reserved.