# File lib/faye/protocol/scheduler.rb, line 39 def abort! end
# File lib/faye/protocol/scheduler.rb, line 18 def deliverable? attempts = @options[:attempts] deadline = @options[:deadline] now = Time.now.to_f return false if attempts and @attempts >= attempts return false if deadline and now > deadline true end
# File lib/faye/protocol/scheduler.rb, line 36 def fail! end
# File lib/faye/protocol/scheduler.rb, line 10 def interval @options[:interval] end
# File lib/faye/protocol/scheduler.rb, line 29 def send! @attempts += 1 end
# File lib/faye/protocol/scheduler.rb, line 33 def succeed! end
# File lib/faye/protocol/scheduler.rb, line 14 def timeout @options[:timeout] end
# File lib/faye/protocol/scheduler.rb, line 4 def initialize(message, options) @message = message @options = options @attempts = 0 end