TX_SET_TRANSACTION_TIMEOUT(3)


Table of Contents

1. NAME
2. SYNOPSIS
3. DESCRIPTION
4. RETURN VALUE
5. ERRORS
6. EXAMPLE
7. BUGS
8. SEE ALSO
9. COPYING

1. NAME

tx_set_transaction_timeout - Set timeout value for new transaction

2. SYNOPSIS

#include <tx.h>

int tx_set_transaction_timeout(TRANSACTION_TIMEOUT timeout);

For XATMI client link with -latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm

For XATMI server link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm

3. DESCRIPTION

Function set timeout value for new transactions. The value is used when next tx_begin(3) is issued. The value does not affect any global transaction in progress. If value of timeout is set to 0 then maximum timeout value is used for transaction. Units for timeout is seconds.

4. RETURN VALUE

On success, tx_set_transaction_timeout() return TX_OK; on error, error code is returned

5. ERRORS

TX_EINVAL Invalid value of timeout parameter, less than 0.

TX_PROTOCOL_ERROR Transaction manager is not open by tx_open(3)

6. EXAMPLE

See atmitest/test021_xafull/atmiclt21tx.c for sample code.

7. BUGS

Report bugs to support@mavimax.com

8. SEE ALSO

tx_open(3) tx_close(3) tx_begin(3) tx_commit(3) tx_rollback(3) tx_info(3) tx_set_transaction_control(3) tx_set_commit_return(3)

9. COPYING

© Mavimax, Ltd