Class StateQueryService

java.lang.Object
io.camunda.zeebe.engine.state.query.StateQueryService
All Implemented Interfaces:
QueryService, AutoCloseable

public final class StateQueryService extends Object implements QueryService
  • Constructor Details

  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getBpmnProcessIdForProcess

      public Optional<org.agrona.DirectBuffer> getBpmnProcessIdForProcess(long key)
      Description copied from interface: QueryService
      Queries the state for the bpmn process id of a specific process.
      Specified by:
      getBpmnProcessIdForProcess in interface QueryService
      Parameters:
      key - The key of the process
      Returns:
      Optionally the bpmn process id if found, otherwise an empty optional
    • getBpmnProcessIdForProcessInstance

      public Optional<org.agrona.DirectBuffer> getBpmnProcessIdForProcessInstance(long key)
      Description copied from interface: QueryService
      Queries the state for the bpmn process id of the process of a specific process instance.
      Specified by:
      getBpmnProcessIdForProcessInstance in interface QueryService
      Parameters:
      key - The key of the process instance
      Returns:
      Optionally the bpmn process id if found, otherwise an empty optional
    • getBpmnProcessIdForJob

      public Optional<org.agrona.DirectBuffer> getBpmnProcessIdForJob(long key)
      Description copied from interface: QueryService
      Queries the state for the bpmn process id of the process that a specific job belongs to.
      Specified by:
      getBpmnProcessIdForJob in interface QueryService
      Parameters:
      key - The key of the job
      Returns:
      Optionally the bpmn process id if found, otherwise an empty optional