Interface ImpersonationService.Executor<R,T extends Throwable>

Type Parameters:
R - The return type
T - The exception type
Enclosing interface:
ImpersonationService

public static interface ImpersonationService.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

    Modifier and Type
    Method
    Description
    This method is called in the impersonation execution context.
  • Method Details

    • execute

      R execute() throws T
      This method is called in the impersonation execution context.
      Returns:
      The return value
      Throws:
      T - the exception thrown on error