Class: Hivent::Redis::Signal

Inherits:
AbstractSignal show all
Defined in:
lib/hivent/redis/signal.rb

Constant Summary collapse

MAX_TRIES =
4
SLEEP =
->(n) { (n**4) * 0.01 }

Instance Attribute Summary

Attributes inherited from AbstractSignal

#client_id, #name, #producer

Instance Method Summary collapse

Methods inherited from AbstractSignal

#emit, #receive

Constructor Details

#initialize(*args) ⇒ Signal

Returns a new instance of Signal.



14
15
16
17
18
# File 'lib/hivent/redis/signal.rb', line 14

def initialize(*args)
  super

  @producer = Producer.new(redis)
end