Class: Octokiq::Server::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/octokiq/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



12
13
14
15
16
# File 'lib/octokiq/server.rb', line 12

def initialize
  @concurrency = Etc.nprocessors
  @queues = [Consts::DEFAULT_QUEUE]
  @thread_mode = false
end

Instance Attribute Details

#concurrencyObject

Returns the value of attribute concurrency.



8
9
10
# File 'lib/octokiq/server.rb', line 8

def concurrency
  @concurrency
end

#queuesObject

Returns the value of attribute queues.



8
9
10
# File 'lib/octokiq/server.rb', line 8

def queues
  @queues
end

#thread_modeObject

Returns the value of attribute thread_mode.



8
9
10
# File 'lib/octokiq/server.rb', line 8

def thread_mode
  @thread_mode
end