public class SavepointHandlers.StopWithSavepointHandler extends AbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,T,SavepointTriggerMessageParameters>
log, MAPPER
leaderRetriever, logger, responseHeaders, timeout
Constructor and Description |
---|
StopWithSavepointHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever,
Time timeout,
Map<String,String> responseHeaders) |
Modifier and Type | Method and Description |
---|---|
protected CompletableFuture<String> |
triggerOperation(HandlerRequest<StopWithSavepointRequestBody,SavepointTriggerMessageParameters> 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 StopWithSavepointHandler(GatewayRetriever<? extends RestfulGateway> leaderRetriever, Time timeout, Map<String,String> responseHeaders)
protected CompletableFuture<String> triggerOperation(HandlerRequest<StopWithSavepointRequestBody,SavepointTriggerMessageParameters> request, RestfulGateway gateway) throws RestHandlerException
AbstractAsynchronousOperationHandlers.TriggerHandler
triggerOperation
in class AbstractAsynchronousOperationHandlers.TriggerHandler<RestfulGateway,StopWithSavepointRequestBody,SavepointTriggerMessageParameters>
request
- with which the trigger handler has been calledgateway
- to the leaderRestHandlerException
- if something went wrongCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.