Class QueryApiRequestHandler
java.lang.Object
io.camunda.zeebe.util.sched.Actor
io.camunda.zeebe.broker.transport.ApiRequestHandler<QueryRequestReader,QueryResponseWriter>
io.camunda.zeebe.broker.transport.queryapi.QueryApiRequestHandler
- All Implemented Interfaces:
RequestHandler,CloseableSilently,AsyncClosable,ConcurrencyControl,AutoCloseable
@Deprecated(forRemoval=true,
since="1.2.0")
public final class QueryApiRequestHandler
extends ApiRequestHandler<QueryRequestReader,QueryResponseWriter>
Deprecated, for removal: This API element is subject to removal in a future version.
Request handler for ExecuteQueryRequest SBE messages. When successful, it looks up the
bpmnProcessId of a process based on the request details. Make sure to set
QueryApiCfg.setEnabled(boolean) to true to enable this functionality.-
Nested Class Summary
Nested classes/interfaces inherited from class io.camunda.zeebe.broker.transport.ApiRequestHandler
ApiRequestHandler.RequestReader<T extends org.agrona.sbe.MessageDecoderFlyweight>, ApiRequestHandler.ResponseWriterNested classes/interfaces inherited from class io.camunda.zeebe.util.sched.Actor
Actor.ActorBuilder -
Field Summary
Fields inherited from class io.camunda.zeebe.broker.transport.ApiRequestHandler
LOGFields inherited from class io.camunda.zeebe.util.sched.Actor
actor, ACTOR_PROP_NAME, ACTOR_PROP_PARTITION_ID -
Constructor Summary
ConstructorsConstructorDescriptionQueryApiRequestHandler(QueryApiCfg config, int nodeId) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPartition(int partitionId, QueryService queryService) Deprecated, for removal: This API element is subject to removal in a future version.getName()Deprecated, for removal: This API element is subject to removal in a future version.protected Either<ErrorResponseWriter,QueryResponseWriter> handle(int partitionId, long requestId, QueryRequestReader requestReader, QueryResponseWriter responseWriter, ErrorResponseWriter errorWriter) Deprecated, for removal: This API element is subject to removal in a future version.Handles a request.protected voidDeprecated, for removal: This API element is subject to removal in a future version.voidremovePartition(int partitionId) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class io.camunda.zeebe.broker.transport.ApiRequestHandler
onRequestMethods inherited from class io.camunda.zeebe.util.sched.Actor
buildActorName, buildActorName, close, closeAsync, createContext, getContext, handleFailure, isActorClosed, newActor, onActorClosed, onActorCloseRequested, onActorFailed, onActorStarted, onActorStarting, run, runOnCompletion, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.util.sched.ConcurrencyControl
createCompletedFuture, createFuture
-
Constructor Details
-
QueryApiRequestHandler
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getName
Deprecated, for removal: This API element is subject to removal in a future version. -
onActorClosing
protected void onActorClosing()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
onActorClosingin classActor
-
addPartition
Deprecated, for removal: This API element is subject to removal in a future version. -
removePartition
public void removePartition(int partitionId) Deprecated, for removal: This API element is subject to removal in a future version. -
handle
protected Either<ErrorResponseWriter,QueryResponseWriter> handle(int partitionId, long requestId, QueryRequestReader requestReader, QueryResponseWriter responseWriter, ErrorResponseWriter errorWriter) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ApiRequestHandlerHandles a request. The is populated at this point.- Specified by:
handlein classApiRequestHandler<QueryRequestReader,QueryResponseWriter> - Parameters:
partitionId- the current partition idrequestId- the current request idrequestReader- areaderthat is already populated with the request dataresponseWriter- awriterthat can be used to write successful responseserrorWriter- aErrorResponseWriterthat can be used to write error responses- Returns:
- a
ErrorResponseWriterwhen the handling failed, or aResponseWriterwhen the handling was successful. Writes to the other writer will be ignored and are not sent as a response.
-