public class TxHelper extends Object
| Constructor and Description |
|---|
TxHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
begin() |
static void |
checkCommitConflictException(com.gemstone.gemfire.cache.ConflictException ex)
Verify that the commit conflict string contains customer-friendly
information.
|
static void |
commit() |
static void |
commitExpectFailure()
Do a commit; throw an error if it succeeds
|
static void |
commitExpectSuccess()
Do a commit; throw an error if it fails
|
static boolean |
exists() |
static boolean |
exists(com.gemstone.gemfire.cache.TransactionId txId) |
static com.gemstone.gemfire.cache.TransactionId |
getTransactionId() |
static com.gemstone.gemfire.internal.cache.TXStateInterface |
getTxState() |
static void |
internalResume(com.gemstone.gemfire.internal.cache.TXStateInterface txContext) |
static com.gemstone.gemfire.internal.cache.TXStateInterface |
internalSuspend() |
static boolean |
isSuspended(com.gemstone.gemfire.cache.TransactionId txId) |
static void |
resume(com.gemstone.gemfire.cache.TransactionId txId) |
static void |
rollback() |
static void |
setTransactionManager() |
static com.gemstone.gemfire.cache.TransactionId |
suspend() |
static boolean |
tryResume(com.gemstone.gemfire.cache.TransactionId txId,
long wait,
TimeUnit timeUnit) |
public static void setTransactionManager()
public static void begin()
public static void commit()
throws com.gemstone.gemfire.cache.TransactionException
com.gemstone.gemfire.cache.TransactionExceptionpublic static void commitExpectSuccess()
public static void commitExpectFailure()
public static boolean exists()
public static boolean exists(com.gemstone.gemfire.cache.TransactionId txId)
public static com.gemstone.gemfire.cache.TransactionId getTransactionId()
public static void rollback()
public static com.gemstone.gemfire.cache.TransactionId suspend()
public static com.gemstone.gemfire.internal.cache.TXStateInterface internalSuspend()
public static boolean isSuspended(com.gemstone.gemfire.cache.TransactionId txId)
public static void resume(com.gemstone.gemfire.cache.TransactionId txId)
public static boolean tryResume(com.gemstone.gemfire.cache.TransactionId txId,
long wait,
TimeUnit timeUnit)
public static void internalResume(com.gemstone.gemfire.internal.cache.TXStateInterface txContext)
public static com.gemstone.gemfire.internal.cache.TXStateInterface getTxState()
public static void checkCommitConflictException(com.gemstone.gemfire.cache.ConflictException ex)
ex - The commit conflict exception.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.