Class: SuperInstance::Equipment::SwarmCoordinator::KnowledgeConfig
- Inherits:
-
Data
- Object
- Data
- SuperInstance::Equipment::SwarmCoordinator::KnowledgeConfig
- Defined in:
- lib/equipment/swarm_coordinator/asymmetric_knowledge.rb
Overview
Configuration for knowledge management
Instance Attribute Summary collapse
-
#enable_caching ⇒ Object
readonly
Returns the value of attribute enable_caching.
-
#enable_provenance ⇒ Object
readonly
Returns the value of attribute enable_provenance.
-
#isolation_level ⇒ Object
readonly
Returns the value of attribute isolation_level.
-
#max_partition_size ⇒ Object
readonly
Returns the value of attribute max_partition_size.
-
#retention_period ⇒ Object
readonly
Returns the value of attribute retention_period.
Class Method Summary collapse
Instance Attribute Details
#enable_caching ⇒ Object (readonly)
Returns the value of attribute enable_caching
9 10 11 |
# File 'lib/equipment/swarm_coordinator/asymmetric_knowledge.rb', line 9 def enable_caching @enable_caching end |
#enable_provenance ⇒ Object (readonly)
Returns the value of attribute enable_provenance
9 10 11 |
# File 'lib/equipment/swarm_coordinator/asymmetric_knowledge.rb', line 9 def enable_provenance @enable_provenance end |
#isolation_level ⇒ Object (readonly)
Returns the value of attribute isolation_level
9 10 11 |
# File 'lib/equipment/swarm_coordinator/asymmetric_knowledge.rb', line 9 def isolation_level @isolation_level end |
#max_partition_size ⇒ Object (readonly)
Returns the value of attribute 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_period ⇒ Object (readonly)
Returns the value of attribute 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 |