public interface PendingAckStore
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
appendAbortMark(org.apache.pulsar.client.api.transaction.TxnID txnID,
org.apache.pulsar.common.api.proto.CommandAck.AckType ackType)
Append the pending ack abort mark to the ack persistent store.
|
CompletableFuture<Void> |
appendCommitMark(org.apache.pulsar.client.api.transaction.TxnID txnID,
org.apache.pulsar.common.api.proto.CommandAck.AckType ackType)
Append the pending ack commit mark to the ack persistent store.
|
CompletableFuture<Void> |
appendCumulativeAck(org.apache.pulsar.client.api.transaction.TxnID txnID,
PositionImpl position)
Append the cumulative pending ack operation to the ack persistent store.
|
CompletableFuture<Void> |
appendIndividualAck(org.apache.pulsar.client.api.transaction.TxnID txnID,
List<org.apache.commons.lang3.tuple.MutablePair<PositionImpl,Integer>> positions)
Append the individual pending ack operation to the ack persistent store.
|
CompletableFuture<Void> |
closeAsync()
Close the transaction pending ack store.
|
void |
replayAsync(PendingAckHandleImpl pendingAckHandle,
ScheduledExecutorService executorService)
Replay pending ack to recover the pending ack subscription pending ack state.
|
void replayAsync(PendingAckHandleImpl pendingAckHandle, ScheduledExecutorService executorService)
pendingAckHandle - the handle of pending ackexecutorService - the replay executor serviceCompletableFuture<Void> closeAsync()
CompletableFuture<Void> appendIndividualAck(org.apache.pulsar.client.api.transaction.TxnID txnID, List<org.apache.commons.lang3.tuple.MutablePair<PositionImpl,Integer>> positions)
txnID - TxnID transaction id.positions - List the list of position and batch size.CompletableFuture<Void> appendCumulativeAck(org.apache.pulsar.client.api.transaction.TxnID txnID, PositionImpl position)
txnID - TxnID transaction id.position - PositionImpl the pending ack position.CompletableFuture<Void> appendCommitMark(org.apache.pulsar.client.api.transaction.TxnID txnID, org.apache.pulsar.common.api.proto.CommandAck.AckType ackType)
txnID - TxnID the transaction id for add commit mark.ackType - CommandAck.AckType the ack type of the commit.CompletableFuture<Void> appendAbortMark(org.apache.pulsar.client.api.transaction.TxnID txnID, org.apache.pulsar.common.api.proto.CommandAck.AckType ackType)
txnID - Position the txnIDackType - CommandAck.AckType the ack type of the abort.Copyright © 2017–2022 Apache Software Foundation. All rights reserved.