Interface QueryHandleContext.PresenceManager
- Enclosing class:
- QueryHandleContext
public static interface QueryHandleContext.PresenceManager
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWrite a state value to the presence KV associated with a worker's process info id.booleanremovePresenceKv(String workerProcessInfoId, boolean logWarningIfNotExists) Remove the presence KV for the given worker process info id.
-
Method Details
-
putPresenceKv
Write a state value to the presence KV associated with a worker's process info id.- Parameters:
state- The state to store in the presence KV's value, which also includes the process info id to use as key.- Returns:
- true if the write succeeded, false otherwise.
-
removePresenceKv
Remove the presence KV for the given worker process info id.- Parameters:
workerProcessInfoId- the key to removelogWarningIfNotExists- if true, log a warning if no key is deleted, otherwise ignore key not found- Returns:
- true if the key was deleted successfully or it did not exist, false if the request attempt failed
-