Package com.io7m.idstore.server.http
Class IdHTTPServletCoreFixedDelay
java.lang.Object
com.io7m.idstore.server.http.IdHTTPServletCoreFixedDelay
- All Implemented Interfaces:
IdHTTPServletFunctionalCoreType
public final class IdHTTPServletCoreFixedDelay
extends Object
implements IdHTTPServletFunctionalCoreType
A servlet core that executes with a fixed delay.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(jakarta.servlet.http.HttpServletRequest request, IdHTTPServletRequestInformation information) Execute the core.withFixedDelay(com.io7m.repetoir.core.RPServiceDirectoryType services, Duration delay, IdHTTPServletFunctionalCoreType inCore)
-
Method Details
-
withFixedDelay
public static IdHTTPServletFunctionalCoreType withFixedDelay(com.io7m.repetoir.core.RPServiceDirectoryType services, Duration delay, IdHTTPServletFunctionalCoreType inCore) - Parameters:
services- The servicesinCore- The coredelay- The fixed delay to apply to each execution- Returns:
- A servlet core that executes with a fixed delay
-
execute
public IdHTTPServletResponseType execute(jakarta.servlet.http.HttpServletRequest request, IdHTTPServletRequestInformation information) Description copied from interface:IdHTTPServletFunctionalCoreTypeExecute the core.- Specified by:
executein interfaceIdHTTPServletFunctionalCoreType- Parameters:
request- The requestinformation- The extra request information- Returns:
- The response
-