Class: Ruote::NullParticipant
- Inherits:
-
Object
- Object
- Ruote::NullParticipant
- 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
Instance Method Summary collapse
-
#cancel(fei, flavour) ⇒ Object
Does nothing.
-
#consume(workitem) ⇒ Object
Does nothing, discards the workitem it receives.
-
#initialize(opts = nil) ⇒ NullParticipant
constructor
A new instance of NullParticipant.
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 |