Class AdminApiRequestHandler
java.lang.Object
io.camunda.zeebe.util.sched.Actor
io.camunda.zeebe.broker.transport.ApiRequestHandler<ApiRequestReader,ApiResponseWriter>
io.camunda.zeebe.broker.transport.adminapi.AdminApiRequestHandler
- All Implemented Interfaces:
RequestHandler,CloseableSilently,AsyncClosable,ConcurrencyControl,AutoCloseable
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Either<ErrorResponseWriter,ApiResponseWriter> handle(int partitionId, long requestId, ApiRequestReader requestReader, ApiResponseWriter responseWriter, ErrorResponseWriter errorWriter) Handles a request.voidinjectPartitionManager(PartitionManagerImpl partitionManager) 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, getName, handleFailure, isActorClosed, newActor, onActorClosed, onActorCloseRequested, onActorClosing, 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
-
AdminApiRequestHandler
-
-
Method Details
-
handle
protected Either<ErrorResponseWriter,ApiResponseWriter> handle(int partitionId, long requestId, ApiRequestReader requestReader, ApiResponseWriter responseWriter, ErrorResponseWriter errorWriter) Description copied from class:ApiRequestHandlerHandles a request. The is populated at this point.- Specified by:
handlein classApiRequestHandler<ApiRequestReader,ApiResponseWriter> - 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.
-
injectPartitionManager
-