Package com.axelor.concurrent
Class ContextAwareCallable<V>
java.lang.Object
com.axelor.concurrent.ContextAwareCallable<V>
- Type Parameters:
V
- the result type of the enclosedCallable
- All Implemented Interfaces:
Callable<V>
A wrapper around a
Callable
that enables execution within a context-aware environment.
This propagates contextual information such as tenant and user details, as well as the base URL
and language preferences, to the execution thread of the task.-
Method Summary
Modifier and TypeMethodDescriptioncall()
static <V> ContextAwareCallable
<V> Creates aContextAwareCallable
instance from the givenCallable
task.static <V> ContextAwareCallable
<V> Creates aContextAwareCallable
instance from the givenCallable
task.
-
Method Details
-
of
Creates aContextAwareCallable
instance from the givenCallable
task. The returnedContextAwareCallable
enables execution of the task in a context-aware environment. -
of
Creates aContextAwareCallable
instance from the givenCallable
task. The returnedContextAwareCallable
enables execution of the task in a context-aware environment. -
call
-