1CosTransactions_Terminator(3E)rlang Module DefinitioCnosTransactions_Terminator(3)
2
3
4
6 CosTransactions_Terminator - This module implements the OMG CosTransac‐
7 tions::Terminator interface.
8
10 To get access to the record definitions for the structures use:
11 -include_lib("cosTransactions/include/CosTransactions.hrl").
12
14 commit(Terminator, ReportHeuristics) -> Return
15
16 Types:
17
18 Terminator = #objref
19 ReportHeuristics = boolean()
20 Return = ok | {'EXCEPTION', E}
21 E = #'CosTransactions_HeuristicMixed'{} | #'CosTransac‐
22 tions_HeuristicHazrd'{} | #'CosTransactions_Transaction‐
23 RolledBack'{}
24
25 This operation initiates the two-phase commit protocol. If the
26 transaction has not been marked 'rollback only' and all the par‐
27 ticipants agree to commit, the operation terminates normally.
28 Otherwise, the TransactionRolledBack is raised. If the parameter
29 ReportHeuristics is true and inconsistent outcomes by raising an
30 Heuristic Exception.
31
32 rollback(Terminator) -> Return
33
34 Types:
35
36 Terminator = #objref
37 Return = ok
38
39 This operation roles back the transaction.
40
41
42
43Ericsson AB cosTransactions 1.3.3CosTransactions_Terminator(3)