Sha256: 8a7b8f56a4be66d377b210e12d1a682219dbf6d7878ad07a75d9a8417d0a6a61
Contents?: true
Size: 752 Bytes
Versions: 1
Compression:
Stored size: 752 Bytes
Contents
# frozen_string_literal: true module DispatchRider module QueueServices class FileSystem < Base class FsReceivedMessage < ReceivedMessage attr_reader :queue def initialize(message, item, queue) @queue = queue super(message, item) end def extend_timeout(timeout) #file system doesn't support timeouts on items, so we ignore this. end def return_to_queue queue.put_back(item) end def receive_count 1 # can't really check that in this service end def sent_at @item.ctime end def queue_name File.basename(File.dirname(@item.path)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dispatch-rider-2.2.0 | lib/dispatch-rider/queue_services/file_system/fs_received_message.rb |