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

Instance Method Summary collapse

Methods included from LocalParticipant

#re_dispatch, #unschedule_re_dispatch

Methods included from ReceiverMixin

#applied_workitem, #fetch_flow_expression, #launch, #receive, #reply, #reply_to_engine, #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