public class ClusterDataSetDeleteHandlers.ClusterDataSetDeleteTriggerHandler extends AbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,EmptyRequestBody,ClusterDataSetDeleteTriggerMessageParameters>
TriggerHandler
implementation for the cluster data set delete operation.log, MAPPER
leaderRetriever, logger, responseHeaders, timeout
Constructor and Description |
---|
ClusterDataSetDeleteTriggerHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever,
Time timeout,
Map<String,String> responseHeaders,
GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever) |
Modifier and Type | Method and Description |
---|---|
protected OperationKey |
createOperationKey(HandlerRequest<EmptyRequestBody,ClusterDataSetDeleteTriggerMessageParameters> request)
Create the operation key under which the result future of the asynchronous operation will
be stored.
|
protected CompletableFuture<Void> |
triggerOperation(HandlerRequest<EmptyRequestBody,ClusterDataSetDeleteTriggerMessageParameters> request,
RestfulGateway gateway)
Trigger the asynchronous operation and return its future result.
|
handleRequest
getMessageHeaders, respondToRequest
closeAsync, closeHandlerAsync, respondAsLeader
channelRead0
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public ClusterDataSetDeleteTriggerHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever, Time timeout, Map<String,String> responseHeaders, GatewayRetriever<ResourceManagerGateway> resourceManagerGatewayRetriever)
protected CompletableFuture<Void> triggerOperation(HandlerRequest<EmptyRequestBody,ClusterDataSetDeleteTriggerMessageParameters> request, RestfulGateway gateway) throws RestHandlerException
AbstractAsynchronousOperationHandlers.TriggerHandler
triggerOperation
in class AbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,EmptyRequestBody,ClusterDataSetDeleteTriggerMessageParameters>
request
- with which the trigger handler has been calledgateway
- to the leaderRestHandlerException
- if something went wrongprotected OperationKey createOperationKey(HandlerRequest<EmptyRequestBody,ClusterDataSetDeleteTriggerMessageParameters> request)
AbstractAsynchronousOperationHandlers.TriggerHandler
createOperationKey
in class AbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,EmptyRequestBody,ClusterDataSetDeleteTriggerMessageParameters>
request
- with which the trigger handler has been called.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.