Interface ParametricPrivilegedExceptionAction<T,​P>

  • Type Parameters:
    T - the action result type
    P - the action parameter type
    All Superinterfaces:
    org.wildfly.common.function.ExceptionFunction<P,​T,​Exception>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ParametricPrivilegedExceptionAction<T,​P>
    extends org.wildfly.common.function.ExceptionFunction<P,​T,​Exception>
    A privileged action which accepts a parameter and can throw an exception.
    Author:
    David M. Lloyd
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default T apply​(P p)  
      T run​(P parameter)
      Perform the action.
      • Methods inherited from interface org.wildfly.common.function.ExceptionFunction

        andThen, andThen, andThen, andThen, andThen, andThen, compose, compose
    • Method Detail

      • apply

        default T apply​(P p)
                 throws Exception
        Specified by:
        apply in interface org.wildfly.common.function.ExceptionFunction<P,​T,​Exception>
        Throws:
        Exception
      • run

        T run​(P parameter)
        throws Exception
        Perform the action.
        Parameters:
        parameter - the passed-in parameter
        Returns:
        the action result
        Throws:
        Exception - if the action fails