lucee.Componentcommandbox.system.services.FRTransService
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com FusionReactor Transaction Service. I abstract interactions with the FRAPI, which may or may not exist. When the FR JVM args have been loaded in the JVM, I help assist in tracking custom transactions. If FR is not present, I do nothing.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
FRAPI
|
true
|
false
|
|
boolean
|
FREnabled
|
false
|
true
|
false
|
Constructor Summary | |
---|---|
init()
The constructor detects if FR is present and stores a flag that can short circuit all the methods in this service if FR isn't running. |
Method Summary | |
---|---|
any
|
endTransaction(any FRTransaction)
Will close a transaction by reference. |
any
|
errorTransaction(any FRTransaction, any javaException)
Mark a transaction as having an error. |
string
|
getFRAPI()
|
string
|
getFREnabled()
|
any
|
setFRAPI(any FRAPI)
|
any
|
setFREnabled(boolean FREnabled)
|
any
|
startTransaction(string name, [string description=''])
Start a named transaction in FR. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
The constructor detects if FR is present and stores a flag that can short circuit all the methods in this service if FR isn't running
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Will close a transaction by reference
FRTransaction
- Instance of FR Transaction object, returned by previous call to startTransaction.Mark a transaction as having an error. This will NOT end the transaction. You must still do that.
FRTransaction
- Instance of FR Transaction object, returned by previous call to startTransaction.javaException
- Instance of Java exception object that represents the errorFRAPI
FREnabled
Start a named transaction in FR. This transaction will stay "running" in FR until endTransaction() is called.
name
- The short name of the transactiondescription
- Full details of this transaction