Class: Dynflow::TransactionAdapters::Abstract
- Inherits:
-
Object
- Object
- Dynflow::TransactionAdapters::Abstract
- Defined in:
- lib/dynflow/transaction_adapters/abstract.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#check(world) ⇒ Object
Called after World instantiation, it can be used to check Dynflow configuration etc.
-
#cleanup ⇒ Object
Called on each thread after work is done.
-
#rollback ⇒ Object
rollback the transaction.
-
#transaction(&block) ⇒ Object
start transaction around
block
.
Instance Method Details
#check(world) ⇒ Object
Called after World instantiation, it can be used to check Dynflow configuration etc.
21 22 23 |
# File 'lib/dynflow/transaction_adapters/abstract.rb', line 21 def check(world) # override if needed end |
#cleanup ⇒ Object
Called on each thread after work is done. E.g. it’s used to checkin ActiveRecord connections back to pool.
16 17 18 |
# File 'lib/dynflow/transaction_adapters/abstract.rb', line 16 def cleanup # override if needed end |
#rollback ⇒ Object
rollback the transaction
10 11 12 |
# File 'lib/dynflow/transaction_adapters/abstract.rb', line 10 def rollback raise NotImplementedError end |
#transaction(&block) ⇒ Object
start transaction around block
5 6 7 |
# File 'lib/dynflow/transaction_adapters/abstract.rb', line 5 def transaction(&block) raise NotImplementedError end |