Class ServiceMode
java.lang.Object
services.moleculer.web.servlet.service.ServiceMode
- Direct Known Subclasses:
AsyncService, BlockingService
Blocking or non-blocking request processing mode.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longAsync request timeout in MILLISECONDS (0 = leave the servlet container's default untouched).protected final services.moleculer.ServiceBrokerprotected final ApiGateway -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongabstract voidservice(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidsetAsyncTimeout(long asyncTimeout)
-
Field Details
-
broker
protected final services.moleculer.ServiceBroker broker -
gateway
-
asyncTimeout
protected long asyncTimeoutAsync request timeout in MILLISECONDS (0 = leave the servlet container's default untouched). Used only by the non-blockingAsyncServiceto cap how long a half-received request may keep an async context open (Slowloris defence-in-depth); ignored in blocking mode.
-
-
Constructor Details
-
ServiceMode
-
-
Method Details
-
service
-
setAsyncTimeout
public void setAsyncTimeout(long asyncTimeout) -
getAsyncTimeout
public long getAsyncTimeout()
-