Package com.io7m.idstore.server.http
Class IdHTTPHandlerCoreFixedDelay
java.lang.Object
com.io7m.idstore.server.http.IdHTTPHandlerCoreFixedDelay
- All Implemented Interfaces:
IdHTTPHandlerFunctionalCoreType
public final class IdHTTPHandlerCoreFixedDelay
extends Object
implements IdHTTPHandlerFunctionalCoreType
A handler core that executes with a fixed delay.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(io.helidon.webserver.http.ServerRequest request, IdHTTPRequestInformation information) Execute the core.withFixedDelay(com.io7m.repetoir.core.RPServiceDirectoryType services, Duration delay, IdHTTPHandlerFunctionalCoreType inCore)
-
Method Details
-
withFixedDelay
public static IdHTTPHandlerFunctionalCoreType withFixedDelay(com.io7m.repetoir.core.RPServiceDirectoryType services, Duration delay, IdHTTPHandlerFunctionalCoreType inCore) - Parameters:
services- The servicesdelay- The fixed delay to apply to each executioninCore- The core- Returns:
- A handler core that executes with a fixed delay
-
execute
public IdHTTPResponseType execute(io.helidon.webserver.http.ServerRequest request, IdHTTPRequestInformation information) Description copied from interface:IdHTTPHandlerFunctionalCoreTypeExecute the core.- Specified by:
executein interfaceIdHTTPHandlerFunctionalCoreType- Parameters:
request- The requestinformation- The request information- Returns:
- The response
-