Class: Phronomy::StateStore::Base
- Inherits:
-
Object
- Object
- Phronomy::StateStore::Base
- Defined in:
- lib/phronomy/state_store/base.rb
Overview
Direct Known Subclasses
Instance Method Summary collapse
-
#delete(thread_id) ⇒ void
Delete the stored snapshot for
thread_id. -
#load(thread_id) ⇒ Hash?
Load the stored snapshot for
thread_id. -
#save(thread_id, snapshot) ⇒ void
Persist
snapshotforthread_id.
Instance Method Details
#delete(thread_id) ⇒ void
This method returns an undefined value.
Delete the stored snapshot for thread_id. No-op if absent.
43 44 45 |
# File 'lib/phronomy/state_store/base.rb', line 43 def delete(thread_id) raise NotImplementedError, "#{self.class}#delete is not implemented" end |
#load(thread_id) ⇒ Hash?
Load the stored snapshot for thread_id.
24 25 26 |
# File 'lib/phronomy/state_store/base.rb', line 24 def load(thread_id) raise NotImplementedError, "#{self.class}#load is not implemented" end |
#save(thread_id, snapshot) ⇒ void
This method returns an undefined value.
Persist snapshot for thread_id. Overwrites any existing snapshot.
34 35 36 |
# File 'lib/phronomy/state_store/base.rb', line 34 def save(thread_id, snapshot) raise NotImplementedError, "#{self.class}#save is not implemented" end |