Sha256: eaa1256e86961e65f444e1d16aab19e6e7130bfab6da3473d047d4caa9eb804e
Contents?: true
Size: 589 Bytes
Versions: 21
Compression:
Stored size: 589 Bytes
Contents
module Sneakers module Handlers class Oneshot def initialize(channel, queue, opts) @channel = channel @opts = opts end def acknowledge(hdr, props, msg) @channel.acknowledge(hdr.delivery_tag, false) end def reject(hdr, props, msg, requeue=false) @channel.reject(hdr.delivery_tag, requeue) end def error(hdr, props, msg, err) reject(hdr, props, msg) end def timeout(hdr, props, msg) reject(hdr, props, msg) end def noop(hdr, props, msg) end end end end
Version data entries
21 entries across 21 versions & 2 rubygems