Class: Phronomy::Memory::Storage::InMemory::ThreadData

Inherits:
Object
  • Object
show all
Defined in:
lib/phronomy/memory/storage/in_memory.rb

Overview

Value object holding all per-thread-id storage state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeThreadData

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

#compactionsObject

Returns the value of attribute compactions.



140
141
142
# File 'lib/phronomy/memory/storage/in_memory.rb', line 140

def compactions
  @compactions
end

#hwmObject

Returns the value of attribute hwm.



140
141
142
# File 'lib/phronomy/memory/storage/in_memory.rb', line 140

def hwm
  @hwm
end

#raw_messagesObject

Returns the value of attribute raw_messages.



140
141
142
# File 'lib/phronomy/memory/storage/in_memory.rb', line 140

def raw_messages
  @raw_messages
end

#storeObject

Returns the value of attribute store.



140
141
142
# File 'lib/phronomy/memory/storage/in_memory.rb', line 140

def store
  @store
end