Class: PuppetLanguageServer::GlobalQueues::SingleInstanceQueueJob

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet-languageserver/global_queues/single_instance_queue.rb

Direct Known Subclasses

SidecarQueueJob, ValidationQueueJob

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ SingleInstanceQueueJob

Returns a new instance of SingleInstanceQueueJob.



10
11
12
# File 'lib/puppet-languageserver/global_queues/single_instance_queue.rb', line 10

def initialize(key)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Unique key for the job. The SingleInstanceQueue uses the key to ensure that only a single instance is in the queue



8
9
10
# File 'lib/puppet-languageserver/global_queues/single_instance_queue.rb', line 8

def key
  @key
end