public interface Transaction
| Modifier and Type | Interface and Description |
|---|---|
static class |
Transaction.Status |
| Modifier and Type | Method and Description |
|---|---|
void |
appendMetadata(String key,
Object value)
Set of methods to attach some metadata to a transaction object.
|
long |
getEpoch()
Returns the epoch given by the TSOServer
|
org.apache.phoenix.thirdparty.com.google.common.base.Optional<Object> |
getMetadata(String key) |
long |
getReadTimestamp()
Returns the read timestamp for this transaction.
|
Transaction.Status |
getStatus()
Returns the current transaction
Transaction.Status |
long |
getTransactionId()
Returns the transaction identifier
|
long |
getWriteTimestamp()
Returns the write timestamp for this transaction.
|
boolean |
isLowLatency()
Returns whether the transaction was created by a lowLatency TransactionalManager
|
boolean |
isRollbackOnly()
Returns whether the transaction was marked for rollback or not
|
void |
setMetadata(String key,
Object value) |
void |
setRollbackOnly()
Forces the transaction to rollback, even when there's an intention
to commit it.
|
long getTransactionId()
long getEpoch()
Transaction.Status getStatus()
Transaction.Statuslong getReadTimestamp()
long getWriteTimestamp()
void setRollbackOnly()
boolean isRollbackOnly()
void appendMetadata(String key, Object value)
key - a key, like in hashtablevalue - a value to associate with the given keyorg.apache.phoenix.thirdparty.com.google.common.base.Optional<Object> getMetadata(String key)
boolean isLowLatency()
Copyright © 2011–2020 Apache Software Foundation. All rights reserved.