Class QueryApiRequestHandler
java.lang.Object
io.camunda.zeebe.scheduler.Actor
io.camunda.zeebe.broker.transport.AsyncApiRequestHandler<QueryRequestReader,QueryResponseWriter>
io.camunda.zeebe.broker.transport.queryapi.QueryApiRequestHandler
- All Implemented Interfaces:
AsyncClosable,ConcurrencyControl,RequestHandler,AutoCloseable
@Deprecated(forRemoval=true,
since="1.2.0")
public final class QueryApiRequestHandler
extends AsyncApiRequestHandler<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.AsyncApiRequestHandler
AsyncApiRequestHandler.RequestReader<T extends org.agrona.sbe.MessageDecoderFlyweight>, AsyncApiRequestHandler.ResponseWriterNested classes/interfaces inherited from class io.camunda.zeebe.scheduler.Actor
Actor.ActorBuilder -
Field Summary
Fields inherited from class io.camunda.zeebe.broker.transport.AsyncApiRequestHandler
LOGFields inherited from class io.camunda.zeebe.scheduler.Actor
actor, ACTOR_PROP_NAME, ACTOR_PROP_PARTITION_ID -
Constructor Summary
ConstructorsConstructorDescriptionQueryApiRequestHandler(QueryApiCfg config) 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 ActorFuture<Either<ErrorResponseWriter,QueryResponseWriter>> handleAsync(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.AsyncApiRequestHandler
onRequestMethods inherited from class io.camunda.zeebe.scheduler.Actor
buildActorName, call, close, closeAsync, createContext, getContext, handleFailure, isActorClosed, newActor, onActorClosed, onActorCloseRequested, onActorFailed, onActorStarted, onActorStarting, run, runOnCompletion, schedule, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.scheduler.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. -
handleAsync
protected ActorFuture<Either<ErrorResponseWriter,QueryResponseWriter>> handleAsync(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:AsyncApiRequestHandlerHandles a request. The is populated at this point.- Specified by:
handleAsyncin classAsyncApiRequestHandler<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.
-