@CompileStatic class GrailsWebRequestTaskDecorator extends java.lang.Object implements TaskDecorator
Propagates the current Grails web request through a Spring-managed task executor.
The task is bound to a web request of its own for the request it was started during. That web request is bound to the task's thread only, not stored on the request, which the request thread is still processing, so GrailsWebRequest#lookup(jakarta.servlet.http.HttpServletRequest) finds the request thread's own web request there and the task's in the task.
| Constructor and description |
|---|
GrailsWebRequestTaskDecorator() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Runnable |
decorate(java.lang.Runnable task) |
|
java.lang.Runnable |
decorate(java.lang.Runnable task, GrailsWebRequest captured) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |