Class DaemonKit::RuotePseudoParticipant
In: lib/daemon_kit/ruote_pseudo_participant.rb
Parent: Object

Common convenience methods for making ruote pseudo-participants more DRY and unified

Methods

Attributes

action  [R]  Current action
exception_handler_block  [R] 
exception_handler_method  [R] 
on_complete_handler_block  [R] 
on_complete_handler_method  [R] 
workitem  [R]  Current workitem

Public Class methods

Register a callback method or block that gets called when the action was successfully completed. Block callbacks get the workitem as parameter.

Register a callback method or block that gets called when an exception occurs during the processing of an action. handler can be a symbol or string with a method name, or a block. Both will get the exception as the first parameter, and the block handler will receive the participant instance as the second parameter

Public Instance methods

Perform the specified action with the provided workitem

[Validate]