Package live.hms.video.sessionstore
Class HmsSessionStore
-
- All Implemented Interfaces:
public final class HmsSessionStoreSession Store that only uses asynchronous methods to get and set data.
-
-
Method Summary
Modifier and Type Method Description final Unitget(String key, HMSSessionMetadataListener hmsSessionMetadataListener)Gets a value for the given key from the store. final Unitset(Object data, String key, HMSActionResultListener hmsActionResultListener)Set a value remotely and then to the local store. final UnitaddKeyChangeListener(List<String> forKeys, HMSKeyChangeListener keyChangeListener, HMSActionResultListener hmsActionResultListener)final JobremoveKeyChangeListener(HMSKeyChangeListener listener, HMSActionResultListener hmsActionResultListener)-
-
Method Detail
-
get
final Unit get(String key, HMSSessionMetadataListener hmsSessionMetadataListener)
Gets a value for the given key from the store. Note: If a local peer sets a value and it didn't reach the store, the local value will not be updated either.
-
set
final Unit set(Object data, String key, HMSActionResultListener hmsActionResultListener)
Set a value remotely and then to the local store. Note: If the hmsActionResultListener fails to set, the local value will not be updated either.
-
addKeyChangeListener
final Unit addKeyChangeListener(List<String> forKeys, HMSKeyChangeListener keyChangeListener, HMSActionResultListener hmsActionResultListener)
-
removeKeyChangeListener
final Job removeKeyChangeListener(HMSKeyChangeListener listener, HMSActionResultListener hmsActionResultListener)
-
-
-
-