Class: SuperInstance::Equipment::SwarmCoordinator::KnowledgeConfig

Inherits:
Data
  • Object
show all
Defined in:
lib/equipment/swarm_coordinator/asymmetric_knowledge.rb

Overview

Configuration for knowledge management

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#enable_cachingObject (readonly)

Returns the value of attribute enable_caching

Returns:

  • (Object)

    the current value of enable_caching



9
10
11
# File 'lib/equipment/swarm_coordinator/asymmetric_knowledge.rb', line 9

def enable_caching
  @enable_caching
end

#enable_provenanceObject (readonly)

Returns the value of attribute enable_provenance

Returns:

  • (Object)

    the current value of enable_provenance



9
10
11
# File 'lib/equipment/swarm_coordinator/asymmetric_knowledge.rb', line 9

def enable_provenance
  @enable_provenance
end

#isolation_levelObject (readonly)

Returns the value of attribute isolation_level

Returns:

  • (Object)

    the current value of isolation_level



9
10
11
# File 'lib/equipment/swarm_coordinator/asymmetric_knowledge.rb', line 9

def isolation_level
  @isolation_level
end

#max_partition_sizeObject (readonly)

Returns the value of attribute max_partition_size

Returns:

  • (Object)

    the current value of max_partition_size



9
10
11
# File 'lib/equipment/swarm_coordinator/asymmetric_knowledge.rb', line 9

def max_partition_size
  @max_partition_size
end

#retention_periodObject (readonly)

Returns the value of attribute retention_period

Returns:

  • (Object)

    the current value of retention_period



9
10
11
# File 'lib/equipment/swarm_coordinator/asymmetric_knowledge.rb', line 9

def retention_period
  @retention_period
end

Class Method Details

.new(**kwargs) ⇒ Object



16
17
18
19
20
21
22
23
24
25
# File 'lib/equipment/swarm_coordinator/asymmetric_knowledge.rb', line 16

def self.new(**kwargs)
  defaults = {
    isolation_level: Types::IsolationLevel::MODERATE,
    enable_caching: true,
    max_partition_size: 10_000,
    retention_period: 86_400_000,
    enable_provenance: true
  }
  super(**defaults.merge(kwargs))
end