Class: Ruote::NullParticipant

Inherits:
Object
  • Object
show all
Includes:
LocalParticipant
Defined in:
lib/ruote/part/null_participant.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 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

Constructor Details

#initialize(opts = nil) ⇒ NullParticipant

Returns a new instance of NullParticipant.



40
41
# File 'lib/ruote/part/null_participant.rb', line 40

def initialize(opts=nil)
end

Instance Method Details

#cancel(fei, flavour) ⇒ Object

Does nothing.



50
51
# File 'lib/ruote/part/null_participant.rb', line 50

def cancel(fei, flavour)
end

#consume(workitem) ⇒ Object

Does nothing, discards the workitem it receives.



45
46
# File 'lib/ruote/part/null_participant.rb', line 45

def consume(workitem)
end