Class: Spikard::BackgroundTaskConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBackgroundTaskConfig

Returns a new instance of BackgroundTaskConfig.

Parameters:

  • max_queue_size: (Integer)
  • max_concurrent_tasks: (Integer)
  • drain_timeout_secs: (Integer)


102
# File 'sig/types.rbs', line 102

def initialize: (?max_queue_size: Integer, ?max_concurrent_tasks: Integer, ?drain_timeout_secs: Integer) -> void

Instance Attribute Details

#drain_timeout_secsInteger?

Returns the value of attribute drain_timeout_secs.

Returns:

  • (Integer, nil)


100
101
102
# File 'sig/types.rbs', line 100

def drain_timeout_secs
  @drain_timeout_secs
end

#max_concurrent_tasksInteger?

Returns the value of attribute max_concurrent_tasks.

Returns:

  • (Integer, nil)


99
100
101
# File 'sig/types.rbs', line 99

def max_concurrent_tasks
  @max_concurrent_tasks
end

#max_queue_sizeInteger?

Returns the value of attribute max_queue_size.

Returns:

  • (Integer, nil)


98
99
100
# File 'sig/types.rbs', line 98

def max_queue_size
  @max_queue_size
end

Class Method Details

.defaultBackgroundTaskConfig



103
# File 'sig/types.rbs', line 103

def self.default: () -> BackgroundTaskConfig