@Beta public interface TransactionTimeoutTracker extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
addTransaction(long sequenceId,
long timeout)
Add a txnID to the tracker.
|
void |
close()
Close the transaction timeout tracker and release all resources.
|
void |
replayAddTransaction(long sequenceId,
long timeout)
When replay the log, add the txnMeta to timer task queue.
|
void |
start()
When replay the log finished, we need to start the tracker.
|
CompletableFuture<Boolean> addTransaction(long sequenceId, long timeout)
sequenceId - the sequenceIdtimeout - the absolute timestamp for transaction timeoutvoid replayAddTransaction(long sequenceId,
long timeout)
sequenceId - the sequenceIdtimeout - the absolute timestamp for transaction timeoutvoid start()
void close()
close in interface AutoCloseableCopyright © 2017–2022 Apache Software Foundation. All rights reserved.