Sha256: 6f7254147169ee4b8501e38fda4ea259543edf374b80d2c04da32235b3b60c9c

Contents?: true

Size: 404 Bytes

Versions: 2

Compression:

Stored size: 404 Bytes

Contents

module PerfectQueue


class NullBackend < Backend
  def list(&block)
    nil
  end

  def acquire(timeout, now=Time.now.to_i)
    nil
  end

  def finish(token, delete_timeout=3600, now=Time.now.to_i)
    true
  end

  def update(token, timeout)
    nil
  end

  def cancel(id, delete_timeout=3600, now=Time.now.to_i)
    true
  end

  def submit(id, data, time=Time.now.to_i)
    true
  end
end


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
perfectqueue-0.7.7 lib/perfectqueue/backend/null.rb
perfectqueue-0.7.6 lib/perfectqueue/backend/null.rb