Class StateQueryService
java.lang.Object
io.camunda.zeebe.engine.state.query.StateQueryService
- All Implemented Interfaces:
QueryService
,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.engine.state.QueryService
QueryService.ClosedServiceException
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Optional
<org.agrona.DirectBuffer> getBpmnProcessIdForJob
(long key) Queries the state for the bpmn process id of the process that a specific job belongs to.Optional
<org.agrona.DirectBuffer> getBpmnProcessIdForProcess
(long key) Queries the state for the bpmn process id of a specific process.Optional
<org.agrona.DirectBuffer> getBpmnProcessIdForProcessInstance
(long key) Queries the state for the bpmn process id of the process of a specific process instance.
-
Constructor Details
-
StateQueryService
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getBpmnProcessIdForProcess
Description copied from interface:QueryService
Queries the state for the bpmn process id of a specific process.- Specified by:
getBpmnProcessIdForProcess
in interfaceQueryService
- Parameters:
key
- The key of the process- Returns:
- Optionally the bpmn process id if found, otherwise an empty optional
-
getBpmnProcessIdForProcessInstance
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 interfaceQueryService
- Parameters:
key
- The key of the process instance- Returns:
- Optionally the bpmn process id if found, otherwise an empty optional
-
getBpmnProcessIdForJob
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 interfaceQueryService
- Parameters:
key
- The key of the job- Returns:
- Optionally the bpmn process id if found, otherwise an empty optional
-