Class: ChatSDK::State::Base
- Inherits:
-
Object
- Object
- ChatSDK::State::Base
- Defined in:
- lib/chat_sdk/state/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #acquire_lock(key, owner:, ttl:) ⇒ Object
- #delete(key) ⇒ Object
- #force_lock(key, owner:, ttl:) ⇒ Object
- #get(key) ⇒ Object
- #release_lock(key, owner:) ⇒ Object
- #set(key, value, ttl: nil) ⇒ Object
- #set_if_absent(key, value, ttl: nil) ⇒ Object
- #subscribe(thread_id) ⇒ Object
- #subscribed?(thread_id) ⇒ Boolean
- #unsubscribe(thread_id) ⇒ Object
Instance Method Details
#acquire_lock(key, owner:, ttl:) ⇒ Object
18 19 20 |
# File 'lib/chat_sdk/state/base.rb', line 18 def acquire_lock(key, owner:, ttl:) raise NotImplementedError end |
#delete(key) ⇒ Object
38 39 40 |
# File 'lib/chat_sdk/state/base.rb', line 38 def delete(key) raise NotImplementedError end |
#force_lock(key, owner:, ttl:) ⇒ Object
26 27 28 |
# File 'lib/chat_sdk/state/base.rb', line 26 def force_lock(key, owner:, ttl:) raise NotImplementedError end |
#get(key) ⇒ Object
30 31 32 |
# File 'lib/chat_sdk/state/base.rb', line 30 def get(key) raise NotImplementedError end |
#release_lock(key, owner:) ⇒ Object
22 23 24 |
# File 'lib/chat_sdk/state/base.rb', line 22 def release_lock(key, owner:) raise NotImplementedError end |
#set(key, value, ttl: nil) ⇒ Object
34 35 36 |
# File 'lib/chat_sdk/state/base.rb', line 34 def set(key, value, ttl: nil) raise NotImplementedError end |
#set_if_absent(key, value, ttl: nil) ⇒ Object
42 43 44 |
# File 'lib/chat_sdk/state/base.rb', line 42 def set_if_absent(key, value, ttl: nil) raise NotImplementedError end |
#subscribe(thread_id) ⇒ Object
6 7 8 |
# File 'lib/chat_sdk/state/base.rb', line 6 def subscribe(thread_id) raise NotImplementedError end |
#subscribed?(thread_id) ⇒ Boolean
14 15 16 |
# File 'lib/chat_sdk/state/base.rb', line 14 def subscribed?(thread_id) raise NotImplementedError end |
#unsubscribe(thread_id) ⇒ Object
10 11 12 |
# File 'lib/chat_sdk/state/base.rb', line 10 def unsubscribe(thread_id) raise NotImplementedError end |