Class: Ruote::NullParticipant

Inherits:
Participant show all
Defined in:
lib/ruote/part/test_participants.rb

Overview

A /dev/null participant, simply discards the workitems it receives, without doing anything.

For testing purposes only.

Instance Attribute Summary

Attributes included from LocalParticipant

#context, #error, #fei, #flavour, #msg, #workitem

Instance Method Summary collapse

Methods inherited from Participant

#on_cancel

Methods included from LocalParticipant

#_accept?, #_dont_thread?, #_on_cancel, #_on_reply, #_on_workitem, #_rtimeout, #applied_workitem, #fexp, #is_cancelled?, #is_gone?, #lookup_variable, #participant_name, #re_dispatch, #reply_to_engine, #unschedule_re_dispatch

Methods included from ReceiverMixin

#fetch_flow_expression, #fetch_workitem, #flunk, #launch, #receive, #reply, #sign

Instance Method Details

#on_workitemObject

Does nothing, discards the workitem it receives.


57
58
# File 'lib/ruote/part/test_participants.rb', line 57

def on_workitem
end