CosTransac...ionFactory(3)

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

✨ NAME ✨

CosTransactions_TransactionFactory β€” bestie, this module is the one that implements the OMG CosTransactions::TransactionFactory interface. πŸ’…

(oh and heads up, the manual this lives in is cosTransactions, section 3, just so you know where you are 🫢)


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so if you wanna get access to the record definitions for the structures, you do this:

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

that's it, that's the whole vibe. go get your records. ✨


πŸ‘‘ EXPORTS πŸ‘‘

create(TransactionFactory, Timeout) -> Control

the main character function, fr fr 🌈

Types

  • TransactionFactory = #objref
  • Timeout = integer()
  • Control = #objref

This operation creates a new top-level transaction. literally that's what it does, no cap. πŸŽ€

The Timeout argument can be:

  • 0 β€” no timeout. the transaction just chills, forever, no clock running. 😌
  • N (integer() > 0) β€” bestie, the transaction will be subject to being rolled back if it does not complete before N seconds have elapsed. so like… clock's ticking, don't fumble it. 😭

ngl the timeout thing is the whole plot. 0 means no deadline, a positive integer means there IS a deadline and missing it means rollback. choose wisely. πŸ’€

so yeah, that's the page. brought to you by Ericsson AB, this is cosTransactions version 5.2.2, and we were all hanging out in CosTransac...ionFactory(3) the whole time. tysm for reading, mwah, go write some transactions πŸ’–πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from