Class: Artifactory::Cleaner::Controller::ProcessingQueues

Inherits:
Struct
  • Object
show all
Defined in:
lib/artifactory/cleaner/controller.rb

Overview

Struct to contain the processing queues used internally within the controller


The controller contains two Queues which are used for multi-threaded processing of artifacts. The :incoming queue is fed tasks to be done, which Artifactory::Cleaner::DiscoveryWorker instances pop from, process, and push the results back into the :outgoing queue. The Artifactory::Cleaner::Controller will then pop from the outgoing queue and send the results back to the caller

Instance Attribute Summary collapse

Instance Attribute Details

#incomingObject

Returns the value of attribute incoming

Returns:

  • (Object)

    the current value of incoming



20
21
22
# File 'lib/artifactory/cleaner/controller.rb', line 20

def incoming
  @incoming
end

#outgoingObject

Returns the value of attribute outgoing

Returns:

  • (Object)

    the current value of outgoing



20
21
22
# File 'lib/artifactory/cleaner/controller.rb', line 20

def outgoing
  @outgoing
end