Class: RailsEventStore::AfterCommitDispatcher::AsyncRecord
- Inherits:
-
Object
- Object
- RailsEventStore::AfterCommitDispatcher::AsyncRecord
- Defined in:
- lib/rails_event_store/after_commit_dispatcher.rb
Instance Attribute Summary collapse
-
#schedule_proc ⇒ Object
readonly
Returns the value of attribute schedule_proc.
Instance Method Summary collapse
- #before_committed! ⇒ Object
- #committed! ⇒ Object
-
#initialize(schedule_proc) ⇒ AsyncRecord
constructor
A new instance of AsyncRecord.
- #rolledback! ⇒ Object
- #trigger_transactional_callbacks? ⇒ Boolean
Constructor Details
#initialize(schedule_proc) ⇒ AsyncRecord
Returns a new instance of AsyncRecord.
33 34 35 |
# File 'lib/rails_event_store/after_commit_dispatcher.rb', line 33 def initialize(schedule_proc) @schedule_proc = schedule_proc end |
Instance Attribute Details
#schedule_proc ⇒ Object (readonly)
Returns the value of attribute schedule_proc.
50 51 52 |
# File 'lib/rails_event_store/after_commit_dispatcher.rb', line 50 def schedule_proc @schedule_proc end |
Instance Method Details
#before_committed! ⇒ Object
44 45 |
# File 'lib/rails_event_store/after_commit_dispatcher.rb', line 44 def before_committed! end |
#committed! ⇒ Object
37 38 39 |
# File 'lib/rails_event_store/after_commit_dispatcher.rb', line 37 def committed!(*) schedule_proc.call end |
#rolledback! ⇒ Object
41 42 |
# File 'lib/rails_event_store/after_commit_dispatcher.rb', line 41 def rolledback!(*) end |
#trigger_transactional_callbacks? ⇒ Boolean
47 48 |
# File 'lib/rails_event_store/after_commit_dispatcher.rb', line 47 def trigger_transactional_callbacks? end |