Interface ScopedExclusionService.ExclusiveFunction<F,​V,​E extends Throwable>

  • Enclosing interface:
    ScopedExclusionService
    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 static interface ScopedExclusionService.ExclusiveFunction<F,​V,​E extends Throwable>
    Function to call once the object is locked.
    • Method Detail

      • apply

        V apply​(@Nullable
                F input)
         throws E extends Throwable
        Parameters:
        input - - the locked object
        Returns:
        function result
        Throws:
        E - exception thrown by the function
        E extends Throwable