public class RevealingTxSystemClient extends Object implements org.apache.tephra.TransactionSystemClient
| Modifier and Type | Class and Description |
|---|---|
static class |
RevealingTxSystemClient.RevealingTransaction
This transaction class allows us to return additional details about the transaction to the client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort(org.apache.tephra.Transaction tx) |
boolean |
canCommit(org.apache.tephra.Transaction tx,
Collection<byte[]> changeIds) |
org.apache.tephra.Transaction |
checkpoint(org.apache.tephra.Transaction tx) |
boolean |
commit(org.apache.tephra.Transaction tx) |
int |
getInvalidSize() |
InputStream |
getSnapshotInputStream() |
boolean |
invalidate(long tx) |
void |
resetState() |
org.apache.tephra.Transaction |
startLong() |
org.apache.tephra.Transaction |
startShort() |
org.apache.tephra.Transaction |
startShort(int timeout) |
String |
status() |
boolean |
truncateInvalidTx(Set<Long> invalidTxIds) |
boolean |
truncateInvalidTxBefore(long time) |
public org.apache.tephra.Transaction startLong()
startLong in interface org.apache.tephra.TransactionSystemClientpublic org.apache.tephra.Transaction startShort()
startShort in interface org.apache.tephra.TransactionSystemClientpublic org.apache.tephra.Transaction startShort(int timeout)
startShort in interface org.apache.tephra.TransactionSystemClientpublic boolean canCommit(org.apache.tephra.Transaction tx,
Collection<byte[]> changeIds)
throws org.apache.tephra.TransactionNotInProgressException
canCommit in interface org.apache.tephra.TransactionSystemClientorg.apache.tephra.TransactionNotInProgressExceptionpublic boolean commit(org.apache.tephra.Transaction tx)
throws org.apache.tephra.TransactionNotInProgressException
commit in interface org.apache.tephra.TransactionSystemClientorg.apache.tephra.TransactionNotInProgressExceptionpublic void abort(org.apache.tephra.Transaction tx)
abort in interface org.apache.tephra.TransactionSystemClientpublic boolean invalidate(long tx)
invalidate in interface org.apache.tephra.TransactionSystemClientpublic org.apache.tephra.Transaction checkpoint(org.apache.tephra.Transaction tx)
throws org.apache.tephra.TransactionNotInProgressException
checkpoint in interface org.apache.tephra.TransactionSystemClientorg.apache.tephra.TransactionNotInProgressExceptionpublic InputStream getSnapshotInputStream() throws org.apache.tephra.TransactionCouldNotTakeSnapshotException
getSnapshotInputStream in interface org.apache.tephra.TransactionSystemClientorg.apache.tephra.TransactionCouldNotTakeSnapshotExceptionpublic String status()
status in interface org.apache.tephra.TransactionSystemClientpublic void resetState()
resetState in interface org.apache.tephra.TransactionSystemClientpublic boolean truncateInvalidTx(Set<Long> invalidTxIds)
truncateInvalidTx in interface org.apache.tephra.TransactionSystemClientpublic boolean truncateInvalidTxBefore(long time)
throws org.apache.tephra.InvalidTruncateTimeException
truncateInvalidTxBefore in interface org.apache.tephra.TransactionSystemClientorg.apache.tephra.InvalidTruncateTimeExceptionpublic int getInvalidSize()
getInvalidSize in interface org.apache.tephra.TransactionSystemClientCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.