CacheTransactionManager Class |
Namespace: GemStone.GemFire.Cache.Generic
The CacheTransactionManager type exposes the following members.
Name | Description | |
---|---|---|
![]() | TransactionId |
Returns the transaction identifier for the current thread
Since 3.6.2 |
Name | Description | |
---|---|---|
![]() | Begin |
Creates a new transaction and associates it with the current thread.
|
![]() | Commit |
Commit the transaction associated with the current thread. If
the commit operation fails due to a conflict it will destroy
the transaction state and throw a CommitConflictException.
If the commit operation succeeds,it returns after the transaction
state has been merged with committed state. When this method
completes, the thread is no longer associated with a transaction.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Exists |
Reports the existence of a Transaction for this thread
|
![]() | Exists(TransactionId) |
Reports the existence of a transaction for the given transactionId. This
method can be used to determine if a transaction with the given transaction
identifier is currently in progress locally.
Since 3.6.2 |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsSuspended |
This method can be used to determine if a transaction with the given
transaction identifier is currently suspended locally. This method does not
check other members for transaction status.
Since 3.6.2 |
![]() | Prepare |
Prepare the first message of two-phase-commit transaction associated
with the current thread.
|
![]() | Resume |
On the current thread, resumes a transaction that was previously suspended
using [!:suspend] Since 3.6.2 |
![]() | Rollback |
Roll back the transaction associated with the current thread. When
this method completes, the thread is no longer associated with a
transaction and the transaction context is destroyed.
|
![]() | Suspend |
Suspends the transaction on the current thread. All subsequent operations
performed by this thread will be non-transactional. The suspended
transaction can be resumed by calling TransactionId Since 3.6.2 |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TryResume(TransactionId) |
On the current thread, resumes a transaction that was previously suspended
using [!:suspend].
This method is equivalent to
if (isSuspended(txId)) {
resume(txId);
} Since 3.6.2 |
![]() | TryResume(TransactionId, Int32) |
On the current thread, resumes a transaction that was previously suspended
using [!:suspend], or waits for the specified timeout interval if
the transaction has not been suspended. This method will return if:
Another thread suspends the transaction Another thread calls commit/rollback on the transaction This thread has waited for the specified timeout This method returns immediately if TransactionId returns false.Since 3.6.2 |