endurox.tpsuspend

endurox.tpsuspend(flags: int = 0) endurox.TPTRANID

Suspend global transaction.

For more details see tpsuspend(3) C API call.

Raises:

AtmiException

Following error codes may be present:
TPEINVAL - Invalid flags passed.
TPEPROTO - Invalid operations sequence.
TPESYSTEM - System error occurred.
TPEOS - Operating system error occurred.

Parameters:

flags (int) – Bitwise flags of TPTXNOOPTIM and TPTXTMSUSPEND. default value is 0.

Returns:

tid – Suspend transaction identifier

Return type:

TPTRANID