| Class | DaemonKit::RuoteParticipants |
| In: |
lib/daemon_kit/ruote_participants.rb
|
| Parent: | Object |
Class that cleanly abstracts away the different remote participants in ruote and allows daemon writers to just worry about processing workitems without worrying over the transport mechanism or anything else…
| participants | [R] |
Activate and run the remote participant code, calling the optional block for additional daemon logic.
Register classes as pseudo-participants. Two styles of registration are supported:
register( Foo ) register( 'short', ShortParticipant )
The first format uses the class name (downcased and underscored) as the key for identifying the pseudo-participant, the second uses the the provided key.
Pseudo-participant classes are instantiated when registered, and the instances are re-used.