Class: Athar::Configuration::RetentionConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/athar/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRetentionConfiguration

Returns a new instance of RetentionConfiguration.



25
26
27
28
29
30
31
32
# File 'lib/athar/configuration.rb', line 25

def initialize
  @max_age = nil
  @max_count = nil
  @batch_size = 1_000
  @max_batches_per_run = 100
  @queue_name = :athar
  @prune_table_events = true
end

Instance Attribute Details

#batch_sizeObject

Returns the value of attribute batch_size.



18
19
20
# File 'lib/athar/configuration.rb', line 18

def batch_size
  @batch_size
end

#max_ageObject

Returns the value of attribute max_age.



18
19
20
# File 'lib/athar/configuration.rb', line 18

def max_age
  @max_age
end

#max_batches_per_runObject

Returns the value of attribute max_batches_per_run.



18
19
20
# File 'lib/athar/configuration.rb', line 18

def max_batches_per_run
  @max_batches_per_run
end

#max_countObject

Returns the value of attribute max_count.



18
19
20
# File 'lib/athar/configuration.rb', line 18

def max_count
  @max_count
end

#prune_table_eventsObject

Returns the value of attribute prune_table_events.



18
19
20
# File 'lib/athar/configuration.rb', line 18

def prune_table_events
  @prune_table_events
end

#queue_nameObject

Returns the value of attribute queue_name.



18
19
20
# File 'lib/athar/configuration.rb', line 18

def queue_name
  @queue_name
end