CosTransac...ionFactory(3)
β¨ 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 = #objrefTimeout = 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 beforeNseconds 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
- fedora 43: erlang-cosTransactions 1:5.2.2-1.fc43 Β· Apache-2.0
- fedora 44: erlang-cosTransactions 1:5.2.2-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms