Sha256: bc729a6cb23e2af39e10bee6275b3406f691a703f402e14822edd2df2e1c14b9
Contents?: true
Size: 812 Bytes
Versions: 6
Compression:
Stored size: 812 Bytes
Contents
module MessageDriver module Message class Base include Logging attr_reader :ctx, :body, :raw_body, :headers, :properties def initialize(ctx, body, headers, properties, raw_body = nil) @ctx = ctx @body = body @headers = headers @properties = properties @raw_body = raw_body.nil? ? body : raw_body end def ack(options = {}) if ctx.supports_client_acks? ctx.ack_message(self, options) else logger.debug('this adapter does not support client acks') end end def nack(options = {}) if ctx.supports_client_acks? ctx.nack_message(self, options) else logger.debug('this adapter does not support client acks') end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems