Interface QueryHandleContext.PresenceManager

Enclosing class:
QueryHandleContext

public static interface QueryHandleContext.PresenceManager
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Write a state value to the presence KV associated with a worker's process info id.
    boolean
    removePresenceKv(String workerProcessInfoId, boolean logWarningIfNotExists)
    Remove the presence KV for the given worker process info id.
  • Method Details

    • putPresenceKv

      boolean putPresenceKv(PersistentQueryState state)
      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

      boolean removePresenceKv(String workerProcessInfoId, boolean logWarningIfNotExists)
      Remove the presence KV for the given worker process info id.
      Parameters:
      workerProcessInfoId - the key to remove
      logWarningIfNotExists - 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