Click or drag to resize
CacheTransactionManager Class
CacheTransactionManager encapsulates the transactions for a cache
Inheritance Hierarchy
SystemObject
  [T:GemStone.GemFire.Cache.Generic.Internal.SBWrap<gemfire::InternalCacheTransactionManager2PC>]
    GemStone.GemFire.Cache.GenericCacheTransactionManager

Namespace: GemStone.GemFire.Cache.Generic
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
public sealed class CacheTransactionManager : [T:GemStone.GemFire.Cache.Generic.Internal.SBWrap<gemfire::InternalCacheTransactionManager2PC>]

The CacheTransactionManager type exposes the following members.

Properties
  NameDescription
Public propertyTransactionId
Returns the transaction identifier for the current thread

Since 3.6.2

Top
Methods
  NameDescription
Public methodBegin
Creates a new transaction and associates it with the current thread.
Public methodCommit
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.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExists
Reports the existence of a Transaction for this thread
Public methodExists(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

Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsSuspended
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

Public methodPrepare
Prepare the first message of two-phase-commit transaction associated with the current thread.
Public methodResume
On the current thread, resumes a transaction that was previously suspended using [!:suspend]

Since 3.6.2

Public methodRollback
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.
Public methodSuspend
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

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryResume(TransactionId)
On the current thread, resumes a transaction that was previously suspended using [!:suspend]. This method is equivalent to
if (isSuspended(txId)) {
  resume(txId);
}
except that this action is performed atomically

Since 3.6.2

Public methodTryResume(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

Top
See Also