XTA: API Reference for C language

xta_transaction_manager.h File Reference
Include dependency graph for xta_transaction_manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  xta_transaction_manager_s
 

Typedefs

typedef void xta_transaction_manager_config_t
 
typedef struct
xta_transaction_manager_s 
xta_transaction_manager_t
 

Functions

xta_transaction_txta_transaction_manager_create_transaction (xta_transaction_manager_t *tm)
 
void xta_transaction_manager_delete (xta_transaction_manager_t *tm)
 
xta_transaction_manager_config_txta_transaction_manager_get_config (void)
 
xta_transaction_manager_txta_transaction_manager_new (void)
 

Typedef Documentation

This typedef are necessary to avoid the inclusion of LIXA internals that are unnecessary for the XTA interface, but necessary for XTA implementation. The real type is client_config_coll_t, by XTA is used only as a pointer

Definition at line 36 of file xta_transaction_manager.h.

XTA Transaction Manager data type

Function Documentation

xta_transaction_t* xta_transaction_manager_create_transaction ( xta_transaction_manager_t tm)

Create a new XA Transaction object, associate it with the current process/thread and returns it to the caller. In the event that the caller thread has already created an XA Transaction, the previously created XA Transaction object is returned

Parameters
[in,out]tm: transaction manager object
Returns
the pointer to an XTA Transaction object

Definition at line 142 of file xta_transaction_manager.c.

References LIXA_RC_G_HASH_TABLE_NEW_ERROR, LIXA_RC_INTERNAL_ERROR, LIXA_RC_NON_DISPOSABLE_TX, LIXA_RC_NULL_OBJECT, LIXA_RC_OK, xta_transaction_manager_s::mutex, xta_transaction_manager_s::transactions, xta_transaction_delete(), xta_transaction_get_multiple_branches(), xta_transaction_new(), and xta_transaction_safe_delete().

void xta_transaction_manager_delete ( xta_transaction_manager_t tm)

Delete a Transaction Manager object

Parameters
[in]tm: transaction manager to delete

Definition at line 85 of file xta_transaction_manager.c.

References LIXA_RC_INTERNAL_ERROR, LIXA_RC_OK, xta_transaction_manager_s::mutex, and xta_transaction_manager_s::transactions.

xta_transaction_manager_config_t* xta_transaction_manager_get_config ( void  )

Get the legacy LIXA object that contains the static global configurations for all the statically defined Resource Managers. This method must be intended as STATIC because it does not access the object state.

Returns
the pointer to the Transaction Manager configuration object

Definition at line 128 of file xta_transaction_manager.c.

xta_transaction_manager_t* xta_transaction_manager_new ( void  )

Create a new Transaction Manager object

Returns
a new transaction manager object or NULL in the event of an error occurred

Definition at line 44 of file xta_transaction_manager.c.

References LIXA_RC_G_TRY_MALLOC_ERROR, LIXA_RC_INTERNAL_ERROR, and LIXA_RC_OK.


Copyright © 2009-2019, Christian Ferrari tiian@users.sourceforge.net http://www.tiian.org/