Module life.expert

Interface ConsumerInterrupted<T>

  • Type Parameters:
    T - the type parameter
    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 ConsumerInterrupted<T>
    The interface Consumer interrupted. in order to be able to put the code that calls checked exceptions in lambda
    • Method Summary

      Modifier and Type Method Description
      void accept​(T t)
      Accept.
    • Method Detail

      • accept

        void accept​(T t)
             throws java.lang.InterruptedException,
                    java.util.concurrent.ExecutionException,
                    java.util.concurrent.TimeoutException
        Accept.
        Parameters:
        t - the t
        Throws:
        java.lang.InterruptedException - the interrupted exception
        java.util.concurrent.ExecutionException - the execution exception
        java.util.concurrent.TimeoutException - the timeout exception