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