Class: Phronomy::Memory::Storage::InMemory::ThreadData
- Inherits:
-
Object
- Object
- Phronomy::Memory::Storage::InMemory::ThreadData
- Defined in:
- lib/phronomy/memory/storage/in_memory.rb
Overview
Value object holding all per-thread-id storage state.
Instance Attribute Summary collapse
-
#compactions ⇒ Object
Returns the value of attribute compactions.
-
#hwm ⇒ Object
Returns the value of attribute hwm.
-
#raw_messages ⇒ Object
Returns the value of attribute raw_messages.
-
#store ⇒ Object
Returns the value of attribute store.
Instance Method Summary collapse
-
#initialize ⇒ ThreadData
constructor
A new instance of ThreadData.
Constructor Details
#initialize ⇒ ThreadData
Returns a new instance of ThreadData.
142 143 144 145 146 147 |
# File 'lib/phronomy/memory/storage/in_memory.rb', line 142 def initialize @store = nil @raw_messages = [] @compactions = [] @hwm = -1 end |
Instance Attribute Details
#compactions ⇒ Object
Returns the value of attribute compactions.
140 141 142 |
# File 'lib/phronomy/memory/storage/in_memory.rb', line 140 def compactions @compactions end |
#hwm ⇒ Object
Returns the value of attribute hwm.
140 141 142 |
# File 'lib/phronomy/memory/storage/in_memory.rb', line 140 def hwm @hwm end |
#raw_messages ⇒ Object
Returns the value of attribute raw_messages.
140 141 142 |
# File 'lib/phronomy/memory/storage/in_memory.rb', line 140 def @raw_messages end |
#store ⇒ Object
Returns the value of attribute store.
140 141 142 |
# File 'lib/phronomy/memory/storage/in_memory.rb', line 140 def store @store end |