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)


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

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)


84
85
86
# File 'sig/types.rbs', line 84

def drain_timeout_secs
  @drain_timeout_secs
end

#max_concurrent_tasksInteger?

Returns the value of attribute max_concurrent_tasks.

Returns:

  • (Integer, nil)


83
84
85
# File 'sig/types.rbs', line 83

def max_concurrent_tasks
  @max_concurrent_tasks
end

#max_queue_sizeInteger?

Returns the value of attribute max_queue_size.

Returns:

  • (Integer, nil)


82
83
84
# File 'sig/types.rbs', line 82

def max_queue_size
  @max_queue_size
end

Class Method Details

.defaultBackgroundTaskConfig



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

def self.default: () -> BackgroundTaskConfig