Class: WhittakerTech::Aeon::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/whittaker_tech/aeon.rb

Overview

Engine-wide settings controlling projection behaviour and background processing. Obtain via configuration or mutate via configure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



43
44
45
46
47
48
49
# File 'lib/whittaker_tech/aeon.rb', line 43

def initialize
  @projection_buffer = 14.days
  @max_projection_window = 1.year
  @disposal_policy = :windowed
  @invalidated_retention_window = 60.days
  @queue_adapter = :sidekiq
end

Instance Attribute Details

#disposal_policyActiveSupport::Duration, Symbol

Returns:

  • (ActiveSupport::Duration)

    how far ahead projection extends beyond the current time (default: 14 days)

  • (ActiveSupport::Duration)

    absolute ceiling on projection range from an allocation’s +starts_at+ (default: 1 year)

  • (Symbol)

    retention strategy for invalidated occurrences (+:windowed+, +:permanent+, etc.) (default: +:windowed+)

  • (ActiveSupport::Duration)

    how long invalidated occurrences are kept before the Disposer may purge them (default: 60 days)

  • (Symbol)

    ActiveJob queue backend (+:sidekiq+, +:async+, etc.)



39
40
41
# File 'lib/whittaker_tech/aeon.rb', line 39

def disposal_policy
  @disposal_policy
end

#invalidated_retention_windowActiveSupport::Duration, Symbol

Returns:

  • (ActiveSupport::Duration)

    how far ahead projection extends beyond the current time (default: 14 days)

  • (ActiveSupport::Duration)

    absolute ceiling on projection range from an allocation’s +starts_at+ (default: 1 year)

  • (Symbol)

    retention strategy for invalidated occurrences (+:windowed+, +:permanent+, etc.) (default: +:windowed+)

  • (ActiveSupport::Duration)

    how long invalidated occurrences are kept before the Disposer may purge them (default: 60 days)

  • (Symbol)

    ActiveJob queue backend (+:sidekiq+, +:async+, etc.)



39
40
41
# File 'lib/whittaker_tech/aeon.rb', line 39

def invalidated_retention_window
  @invalidated_retention_window
end

#max_projection_windowActiveSupport::Duration, Symbol

Returns:

  • (ActiveSupport::Duration)

    how far ahead projection extends beyond the current time (default: 14 days)

  • (ActiveSupport::Duration)

    absolute ceiling on projection range from an allocation’s +starts_at+ (default: 1 year)

  • (Symbol)

    retention strategy for invalidated occurrences (+:windowed+, +:permanent+, etc.) (default: +:windowed+)

  • (ActiveSupport::Duration)

    how long invalidated occurrences are kept before the Disposer may purge them (default: 60 days)

  • (Symbol)

    ActiveJob queue backend (+:sidekiq+, +:async+, etc.)



39
40
41
# File 'lib/whittaker_tech/aeon.rb', line 39

def max_projection_window
  @max_projection_window
end

#projection_bufferActiveSupport::Duration, Symbol

Returns:

  • (ActiveSupport::Duration)

    how far ahead projection extends beyond the current time (default: 14 days)

  • (ActiveSupport::Duration)

    absolute ceiling on projection range from an allocation’s +starts_at+ (default: 1 year)

  • (Symbol)

    retention strategy for invalidated occurrences (+:windowed+, +:permanent+, etc.) (default: +:windowed+)

  • (ActiveSupport::Duration)

    how long invalidated occurrences are kept before the Disposer may purge them (default: 60 days)

  • (Symbol)

    ActiveJob queue backend (+:sidekiq+, +:async+, etc.)



39
40
41
# File 'lib/whittaker_tech/aeon.rb', line 39

def projection_buffer
  @projection_buffer
end

#queue_adapterActiveSupport::Duration, Symbol

Returns:

  • (ActiveSupport::Duration)

    how far ahead projection extends beyond the current time (default: 14 days)

  • (ActiveSupport::Duration)

    absolute ceiling on projection range from an allocation’s +starts_at+ (default: 1 year)

  • (Symbol)

    retention strategy for invalidated occurrences (+:windowed+, +:permanent+, etc.) (default: +:windowed+)

  • (ActiveSupport::Duration)

    how long invalidated occurrences are kept before the Disposer may purge them (default: 60 days)

  • (Symbol)

    ActiveJob queue backend (+:sidekiq+, +:async+, etc.)



39
40
41
# File 'lib/whittaker_tech/aeon.rb', line 39

def queue_adapter
  @queue_adapter
end