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. Ending a transaction by a participant has no effect because it is the initiator who can decide whether to commit or abort a transaction. Depending on the state of the transaction, the initiator decides to commit or abort the transaction.

getAndClearFailure

Get and Cleanup the failure.

getData
getInfo
getRollbackOnly
info
isTransactional
onCommit
onRollback
prepareResourceManagers

Prepare local resource managers.

rollbackTransaction

Rollback the transaction.

setData
setRollbackOnly
setTransactionContext

Set the transactionContext.

startTransaction

Constants

OUTCOME_COMMITTED
TWO_PHASE_COMMIT

Types

Error

Represents the Transaction module related error.

Errors

error

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

TransactionError

Represents the Transaction error.