Class | Ruote::DefaultHistory |
In: |
lib/ruote/log/default_history.rb
|
Parent: | Object |
A default history implementation, only keeps the most recent stuff in memory.
This class includes Enumerable.
NOTE:
This default history is worthless when there are multiple workers. It only keeps track of the msgs processed by the worker in the same context. Msgs processed by other workers (in different Ruby runtimes) are not seen (they are tracked by the DefaultHistory next to those workers).
By default, this history keeps track of the latest 1‘000 msgs. This can be changed by passing a ‘history_max_size’ option to the storage when initializing ruote (‘history_max_size’ => 0) is acceptable.