public class InMemoryCommitTable.Client extends Object implements CommitTable.Client
| Constructor and Description |
|---|
Client() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.phoenix.thirdparty.com.google.common.util.concurrent.ListenableFuture<Void> |
deleteCommitEntry(long startTimestamp) |
org.apache.phoenix.thirdparty.com.google.common.util.concurrent.ListenableFuture<org.apache.phoenix.thirdparty.com.google.common.base.Optional<CommitTable.CommitTimestamp>> |
getCommitTimestamp(long startTimestamp)
Checks whether a transaction commit data is inside the commit table The function also checks whether the
transaction was invalidated and returns a commit timestamp type accordingly.
|
org.apache.phoenix.thirdparty.com.google.common.util.concurrent.ListenableFuture<Long> |
readLowWatermark() |
org.apache.phoenix.thirdparty.com.google.common.util.concurrent.ListenableFuture<Boolean> |
tryInvalidateTransaction(long startTimestamp)
Atomically tries to invalidate a non-committed transaction launched by a previous TSO server.
|
public org.apache.phoenix.thirdparty.com.google.common.util.concurrent.ListenableFuture<org.apache.phoenix.thirdparty.com.google.common.base.Optional<CommitTable.CommitTimestamp>> getCommitTimestamp(long startTimestamp)
CommitTable.ClientgetCommitTimestamp in interface CommitTable.ClientstartTimestamp - the transaction start timestamppublic org.apache.phoenix.thirdparty.com.google.common.util.concurrent.ListenableFuture<Long> readLowWatermark()
readLowWatermark in interface CommitTable.Clientpublic org.apache.phoenix.thirdparty.com.google.common.util.concurrent.ListenableFuture<Void> deleteCommitEntry(long startTimestamp)
deleteCommitEntry in interface CommitTable.Clientpublic org.apache.phoenix.thirdparty.com.google.common.util.concurrent.ListenableFuture<Boolean> tryInvalidateTransaction(long startTimestamp)
CommitTable.ClienttryInvalidateTransaction in interface CommitTable.ClientstartTimestamp - the transaction to invalidateCopyright © 2011–2023 Apache Software Foundation. All rights reserved.