class Einhorn::Event::ACKTimer
Public Class Methods
from_state(state)
click to toggle source
# File lib/einhorn/event/ack_timer.rb, line 16 def self.from_state(state) self.open(state[:time], state[:pid], state[:start]) end
new(time, pid, start=nil)
click to toggle source
Calls superclass method
# File lib/einhorn/event/ack_timer.rb, line 5 def initialize(time, pid, start=nil) super(time, start) do Einhorn::Command.register_timer_ack(time, pid) end @pid = pid end
Public Instance Methods
to_state()
click to toggle source
# File lib/einhorn/event/ack_timer.rb, line 12 def to_state {:class => self.class.to_s, :time => @time, :start => @start, :pid => @pid} end