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 aContextAwareCallableinstance from the givenCallabletask.static <V> ContextAwareCallable<V> Creates aContextAwareCallableinstance from the givenCallabletask.
-
Method Details
-
of
Creates aContextAwareCallableinstance from the givenCallabletask. The returnedContextAwareCallableenables execution of the task in a context-aware environment. -
of
Creates aContextAwareCallableinstance from the givenCallabletask. The returnedContextAwareCallableenables execution of the task in a context-aware environment. -
call
-