method
notify
v1_8_6_287 -
Show latest stable
- Class:
Rinda::TupleSpace
notify(event, tuple, sec=nil)public
Registers for notifications of event. Returns a NotifyTemplateEntry. See <a href="/ruby/Rinda/NotifyTemplateEntry">NotifyTemplateEntry</a> for examples of how to listen for notifications.
event can be:
| ‘write’: | A tuple was added |
| ‘take’: | A tuple was taken or moved |
| ‘delete’: | A tuple was lost after being overwritten or expiring |
The TupleSpace will also notify you of the ‘close’ event when the NotifyTemplateEntry has expired.