Class: Athar::Configuration::RetentionConfiguration
- Inherits:
-
Object
- Object
- Athar::Configuration::RetentionConfiguration
- Defined in:
- lib/athar/configuration.rb
Instance Attribute Summary collapse
-
#batch_size ⇒ Object
Returns the value of attribute batch_size.
-
#max_age ⇒ Object
Returns the value of attribute max_age.
-
#max_batches_per_run ⇒ Object
Returns the value of attribute max_batches_per_run.
-
#max_count ⇒ Object
Returns the value of attribute max_count.
-
#prune_table_events ⇒ Object
Returns the value of attribute prune_table_events.
-
#queue_name ⇒ Object
Returns the value of attribute queue_name.
Instance Method Summary collapse
-
#initialize ⇒ RetentionConfiguration
constructor
A new instance of RetentionConfiguration.
Constructor Details
#initialize ⇒ RetentionConfiguration
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_size ⇒ Object
Returns the value of attribute batch_size.
18 19 20 |
# File 'lib/athar/configuration.rb', line 18 def batch_size @batch_size end |
#max_age ⇒ Object
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_run ⇒ Object
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_count ⇒ Object
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_events ⇒ Object
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_name ⇒ Object
Returns the value of attribute queue_name.
18 19 20 |
# File 'lib/athar/configuration.rb', line 18 def queue_name @queue_name end |