class Tribe::Benchmark::Throughput::MyActor
Private Instance Methods
on_do_stuff(event)
click to toggle source
# File lib/tribe/benchmark/throughput.rb, line 62 def on_do_stuff(event) if event.data.increment Tribe.registry["actor_#{rand(ACTOR_COUNT)}"].direct_message!(:do_stuff, event.data) end end
on_exception(event)
click to toggle source
# File lib/tribe/benchmark/throughput.rb, line 68 def on_exception(event) puts concat_e("MyActor (#{identifier}) died.", event.data) end