VMware Tanzu GemFire .NET Client API Reference

VMware Tanzu GemFire .NET Client: ITransactionManager Interface Reference
VMware Tanzu GemFire .NET Client
ITransactionManager Interface Reference

ITransactionManager encapsulates the transactions for a cache More...

Inheritance diagram for ITransactionManager:
ICache

Public Member Functions

void Begin ()
 Creates a new transaction and associates it with the current thread. More...
 
void 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 GemFireInvalidOperationException. 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. More...
 
void 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. More...
 

Properties

ITransactionId TransactionId [get]
 Returns the transaction identifier for the current thread More...
 

Detailed Description

ITransactionManager encapsulates the transactions for a cache

Member Function Documentation

◆ Begin()

void ITransactionManager.Begin ( )

Creates a new transaction and associates it with the current thread.

Exceptions
GemFireIllegalStateExceptionThrows exception if there is a transaction already in progress.

◆ Commit()

void ITransactionManager.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 GemFireInvalidOperationException. 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.

Exceptions
GemFireIllegalStateExceptionIf no active transaction to commit
GemFireInvalidOperationExceptionif the commit operation fails.

◆ Rollback()

void ITransactionManager.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.

Exceptions
GemFireIllegalStateExceptionIf no active transaction to rollback.


Property Documentation

◆ TransactionId

ITransactionId ITransactionManager.TransactionId
get

Returns the transaction identifier for the current thread

Returns
the transaction identifier or null if no transaction exists

The documentation for this interface was generated from the following file:
  • gemfire.client/Interfaces/ITransactionManager.cs