public abstract class TimeoutDirectives extends WebSocketDirectives
SecurityDirectives.ProvidedCredentials, SecurityDirectives.ProvidedCredentials$
Constructor and Description |
---|
TimeoutDirectives() |
Modifier and Type | Method and Description |
---|---|
RouteAdapter |
extractRequestTimeout(java.util.function.Function<scala.concurrent.duration.Duration,Route> inner) |
RouteAdapter |
withoutRequestTimeout(java.util.function.Supplier<Route> inner) |
RouteAdapter |
withRequestTimeout(scala.concurrent.duration.Duration timeout,
java.util.function.Function<HttpRequest,HttpResponse> timeoutHandler,
java.util.function.Supplier<Route> inner)
Tries to set a new request timeout and handler (if provided) at the same time.
|
RouteAdapter |
withRequestTimeout(scala.concurrent.duration.Duration timeout,
java.util.function.Supplier<Route> inner)
Tries to set a new request timeout and handler (if provided) at the same time.
|
RouteAdapter |
withRequestTimeoutResponse(java.util.function.Function<HttpRequest,HttpResponse> timeoutHandler,
java.util.function.Supplier<Route> inner)
Tries to set a new request timeout handler, which produces the timeout response for a
given request.
|
extractOfferedWsProtocols, extractUpgradeToWebSocket, extractWebSocketUpgrade, handleWebSocketMessages, handleWebSocketMessagesForOptionalProtocol, handleWebSocketMessagesForProtocol
authenticateBasic, authenticateBasicAsync, authenticateBasicAsyncOptional, authenticateBasicOptional, authenticateBasicPF, authenticateBasicPFAsync, authenticateOAuth2, authenticateOAuth2Async, authenticateOAuth2AsyncOptional, authenticateOAuth2Optional, authenticateOrRejectWithChallenge, authenticateOrRejectWithChallenge, authorize, authorizeAsync, authorizeAsyncWithRequestContext, authorizeWithRequestContext, extractCredentials
extractScheme, scheme
complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, completeOK, completeOKWithFuture, completeOKWithFuture, completeOKWithFuture, completeOKWithFutureString, completeOKWithFutureString, completeWithFuture, completeWithFuture, completeWithFuture, completeWithFutureResponse, completeWithFutureStatus, completeWithFutureStatus, concat, concat, failWith, handle, handleSync, redirect, reject, reject, reject, route, route
respondWithDefaultHeader, respondWithDefaultHeaders, respondWithHeader, respondWithHeaders
withRangeSupport
ignoreTrailingSlash, path, path, path, path, path, path, pathEnd, pathEndOrSingleSlash, pathPrefix, pathPrefix, pathPrefix, pathPrefix, pathPrefix, pathPrefix, pathPrefixTest, pathPrefixTest, pathPrefixTest, pathPrefixTest, pathSingleSlash, pathSuffix, pathSuffix, pathSuffix, pathSuffix, pathSuffixTest, pathSuffixTest, pathSuffixTest, pathSuffixTest, rawPathPrefix, rawPathPrefix, rawPathPrefix, rawPathPrefix, rawPathPrefixTest, rawPathPrefixTest, rawPathPrefixTest, rawPathPrefixTest, redirectToNoTrailingSlashIfPresent, redirectToTrailingSlashIfMissing
parameter, parameter, parameterList, parameterList, parameterList, parameterMap, parameterMultiMap, parameterOptional, parameterOptional, parameterOrDefault, parameterRequiredValue
extractClientIP, rejectEmptyResponse, requestEntityEmpty, requestEntityPresent, selectPreferredLanguage, validate, withoutSizeLimit, withSizeLimit
delete, extractMethod, get, head, method, options, overrideMethodWithParameter, patch, post, put
completeWith, entity, handleWith, request
extractHost, host, host, host, host
attribute, optionalAttribute
checkSameOrigin, headerValue, headerValueByName, headerValueByType, headerValuePF, optionalHeaderValue, optionalHeaderValueByName, optionalHeaderValueByType, optionalHeaderValuePF
completeOrRecoverWith, onComplete, onComplete, onCompleteWithBreaker, onSuccess, onSuccess
formField, formField, formFieldList, formFieldList, formFieldList, formFieldMap, formFieldMultiMap, formFieldOptional, formFieldOptional
fileUpload, fileUploadAll, storeUploadedFile, storeUploadedFiles
defaultContentTypeResolver, defaultDirectoryRenderer, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromDirectory, getFromDirectory, getFromFile, getFromFile, getFromFile, getFromFile, getFromFile, getFromResource, getFromResource, getFromResource, getFromResource, getFromResourceDirectory, getFromResourceDirectory, getFromResourceDirectory, getFromResourceDirectory, listDirectoryContents, listDirectoryContents, listDirectoryContents, listDirectoryContents
handleExceptions, handleRejections
logRequest, logRequest, logRequest, logRequestResult, logRequestResultOptional, logResult, logResult, logResult
cookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, optionalCookie, setCookie, setCookie
decodeRequest, decodeRequestWith, decodeRequestWith, encodeResponse, encodeResponseWith, requestEncodedWith, responseEncodingAccepted, withPrecompressedMediaTypeSupport
conditional, conditional, conditional, conditional
cancelRejection, cancelRejections, cancelRejections, extract, extractActorSystem, extractDataBytes, extractEntity, extractExecutionContext, extractLog, extractMatchedPath, extractMaterializer, extractParserSettings, extractRequest, extractRequestContext, extractRequestEntity, extractSettings, extractStrictEntity, extractStrictEntity, extractUnmatchedPath, extractUri, mapInnerRoute, mapRejections, mapRequest, mapRequestContext, mapResponse, mapResponseEntity, mapResponseHeaders, mapRouteResult, mapRouteResultFuture, mapRouteResultPF, mapRouteResultWith, mapRouteResultWithPF, mapSettings, mapUnmatchedPath, pass, provide, recoverRejections, recoverRejectionsWith, toStrictEntity, toStrictEntity, withExecutionContext, withLog, withMaterializer, withSettings
public RouteAdapter extractRequestTimeout(java.util.function.Function<scala.concurrent.duration.Duration,Route> inner)
public RouteAdapter withRequestTimeout(scala.concurrent.duration.Duration timeout, java.util.function.Supplier<Route> inner)
Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!
timeout
- (undocumented)inner
- (undocumented)public RouteAdapter withRequestTimeout(scala.concurrent.duration.Duration timeout, java.util.function.Function<HttpRequest,HttpResponse> timeoutHandler, java.util.function.Supplier<Route> inner)
Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!
timeout
- (undocumented)timeoutHandler
- (undocumented)inner
- (undocumented)public RouteAdapter withRequestTimeoutResponse(java.util.function.Function<HttpRequest,HttpResponse> timeoutHandler, java.util.function.Supplier<Route> inner)
Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!
timeoutHandler
- (undocumented)inner
- (undocumented)public RouteAdapter withoutRequestTimeout(java.util.function.Supplier<Route> inner)