CacheTransactionManager MembersPivotal GemFire .NET Client Documentation

The CacheTransactionManager type exposes the following members.
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 a hash function for a particular type.
(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 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

Back to Top
Properties

  NameDescription
Public propertyTransactionId
Returns the transaction identifier for the current thread

Since 3.6.2

Back to Top
See Also