Interface ThreadContextService.Executor<R,T extends Throwable>
- Type Parameters:
R- The return typeT- The exception type
- Enclosing interface:
- ThreadContextService
public static interface ThreadContextService.Executor<R,T extends Throwable>
Interface to implement for the executeInContext method. If no return result is required then set R to Object and
return null. If no exception is expected to be thrown then set T to NothingException.
-
Method Summary
-
Method Details
-
execute
This method is called in the impersonation execution context.- Returns:
- The return value
- Throws:
T- the exception thrown on error
-