Sha256: 01728365a4f5fc77ad06f98ff032d52f7cd41400ff7512dfe829f01d8f85a2a7

Contents?: true

Size: 520 Bytes

Versions: 4

Compression:

Stored size: 520 Bytes

Contents

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
        
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dispatch-rider-1.1.7 lib/dispatch-rider/queue_services/file_system/fs_received_message.rb
dispatch-rider-1.1.6 lib/dispatch-rider/queue_services/file_system/fs_received_message.rb
dispatch-rider-1.1.5 lib/dispatch-rider/queue_services/file_system/fs_received_message.rb
dispatch-rider-1.1.4 lib/dispatch-rider/queue_services/file_system/fs_received_message.rb