Interface ImpersonationService.Executor<R,​T extends java.lang.Throwable>

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

    public static interface ImpersonationService.Executor<R,​T extends java.lang.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 Detail

      • execute

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