CosTransactions_Control(3)

πŸ“¦
version 5.2.2 Β· 2 versions
, in fedora 43, fedora 44

✨ CosTransactions_Control ✨

okay bestie, so this is the Erlang module page for CosTransactions_Control πŸ’… it's a C(3)-style manual page, and it lives in the cosTransactions world, so let's get into it πŸŽ€


🌸 NAME 🌸

CosTransactions_Control β€” no cap, this module implements the OMG</> CosTransactions::Control interface. that's the whole vibe πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, before you do literally anything, if you wanna get access to the record definitions for the structures, you gotta do this:

-include_lib("cosTransactions/include/CosTransactions.hrl").

that's it. that's the whole step. do it or the records won't exist for you, periodt πŸ’œ


πŸ’– EXPORTS πŸ’–

🌈 get_coordinator(Control) -> Return

Types:

Control = #objref
Return = Coordinator | {'EXCEPTION', E}
Coordinator = #objref
E = #'CosTransactions_Unavailable' {}

okay so this operation returns the Coordinator object that's associated with the target object 🫢 and the tea is: the Coordinator supports operations for termination of a transaction. that's its whole job, its main character moment πŸ”₯

ngl, if it can't do the thing you get an 'EXCEPTION' carrying a #'CosTransactions_Unavailable' {} back at you 😭

⭐ get_terminator(Control) -> Return

Types:

Control = #objref
Return = Terminator | {'EXCEPTION', E}
Terminator = #objref
E = #'CosTransactions_Unavailable' {}

and this one? this one returns the Terminator object associated with the target object ✨ same energy as above, different object β€” the Terminator also supports operations for termination of a transaction πŸ’… literally its entire personality.

and yeah, same warning as before: failure comes back as 'EXCEPTION' with a #'CosTransactions_Unavailable' {} πŸ“

🧚 sign-off 🧚

so this lil page was brought to you by Ericsson AB πŸ’– from cosTransactions version 5.2.2, and it's literally titled CosTransactions_Control(3). that's the version, that's the source, that's the date situation β€” mwah, slay, go terminate some transactions responsibly, bestie πŸŽ€πŸ’œ

πŸ“¦ where this page comes from