Sha256: 8db9b51eb6f56b7de8b751391f714948043d206cb2133b1483cf8c348393ed51
Contents?: true
Size: 511 Bytes
Versions: 8
Compression:
Stored size: 511 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 noop(hdr, props, msg) end end end end
Version data entries
8 entries across 8 versions & 2 rubygems