public class InMemoryRedeliveryTracker extends Object implements RedeliveryTracker
| Constructor and Description |
|---|
InMemoryRedeliveryTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIfAbsent(Position position) |
void |
clear() |
boolean |
contains(Position position) |
int |
getRedeliveryCount(Position position) |
int |
incrementAndGetRedeliveryCount(Position position) |
void |
remove(Position position) |
void |
removeBatch(List<Position> positions) |
public int incrementAndGetRedeliveryCount(Position position)
incrementAndGetRedeliveryCount in interface RedeliveryTrackerpublic int getRedeliveryCount(Position position)
getRedeliveryCount in interface RedeliveryTrackerpublic void remove(Position position)
remove in interface RedeliveryTrackerpublic void removeBatch(List<Position> positions)
removeBatch in interface RedeliveryTrackerpublic void clear()
clear in interface RedeliveryTrackerpublic boolean contains(Position position)
contains in interface RedeliveryTrackerpublic void addIfAbsent(Position position)
addIfAbsent in interface RedeliveryTrackerCopyright © 2017–2021 Apache Software Foundation. All rights reserved.