public class NonPersistentAcknowledgmentGroupingTracker extends Object implements AcknowledgmentsGroupingTracker
| Modifier and Type | Method and Description |
|---|---|
void |
addAcknowledgment(MessageIdImpl msgId,
PulsarApi.CommandAck.AckType ackType,
Map<String,Long> properties,
TransactionImpl txnImpl) |
void |
addBatchIndexAcknowledgment(BatchMessageIdImpl msgId,
int batchIndex,
int batchSize,
PulsarApi.CommandAck.AckType ackType,
Map<String,Long> properties,
TransactionImpl transaction) |
void |
addListAcknowledgment(List<MessageIdImpl> messageIds,
PulsarApi.CommandAck.AckType ackType,
Map<String,Long> properties) |
void |
close() |
void |
flush() |
void |
flushAndClean() |
boolean |
isDuplicate(MessageId messageId) |
static NonPersistentAcknowledgmentGroupingTracker |
of() |
public static NonPersistentAcknowledgmentGroupingTracker of()
public boolean isDuplicate(MessageId messageId)
isDuplicate in interface AcknowledgmentsGroupingTrackerpublic void addAcknowledgment(MessageIdImpl msgId, PulsarApi.CommandAck.AckType ackType, Map<String,Long> properties, TransactionImpl txnImpl)
addAcknowledgment in interface AcknowledgmentsGroupingTrackerpublic void addListAcknowledgment(List<MessageIdImpl> messageIds, PulsarApi.CommandAck.AckType ackType, Map<String,Long> properties)
addListAcknowledgment in interface AcknowledgmentsGroupingTrackerpublic void addBatchIndexAcknowledgment(BatchMessageIdImpl msgId, int batchIndex, int batchSize, PulsarApi.CommandAck.AckType ackType, Map<String,Long> properties, TransactionImpl transaction)
addBatchIndexAcknowledgment in interface AcknowledgmentsGroupingTrackerpublic void flush()
flush in interface AcknowledgmentsGroupingTrackerpublic void close()
close in interface AutoCloseableclose in interface AcknowledgmentsGroupingTrackerpublic void flushAndClean()
flushAndClean in interface AcknowledgmentsGroupingTrackerCopyright © 2017–2020 Apache Software Foundation. All rights reserved.