Module : lang.transaction

Version : 0.0.1

Module Overview

This module provides lang library operations on transactions.

Records

Info
TransactionContext

Objects

DefaultRetryManager
LocalParticipant
Participant
RetryManager

Functions

abortResourceManagers

Abort local resource managers.

ballerina/lang.transaction:0.0.1.<init>0
ballerina/lang.transaction:0.0.1.<init>1
cleanupTransactionContext

Cleanup the transaction context.

commitResourceManagers

Commit local resource managers.

createTransactionContext

A new transaction context is created by calling this function.

endTransaction

When a transaction block in Ballerina code ends, it will call this function to end a transaction.

getAndClearFailure

Get and Cleanup the failure.

getRollbackOnly
info
isTransactional
onCommit
onRollback
prepareResourceManagers

Prepare local resource managers.

rollbackTransaction

Rollback the transaction.

setRollbackOnly
setTransactionContext

Set the transactionContext.

startTransaction

Constants

OUTCOME_COMMITTED
TWO_PHASE_COMMIT

Errors

error

This file contains default retry manager to be used with retry statement.