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