Module life.expert

Interface RunnableInterrupted

  • 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 RunnableInterrupted
    The interface Runnable interrupted. in order to be able to put the code that calls checked exceptions in lambda
    • Method Summary

      Modifier and Type Method Description
      void run()
      When an object implementing interface
    • Method Detail

      • run

        void run()
          throws java.lang.InterruptedException,
                 java.util.concurrent.ExecutionException,
                 java.util.concurrent.TimeoutException
        When an object implementing interface
        Runnable
        is used to create a thread, starting the thread causes the object's
        run
        method to be called in that separately executing thread. The general contract of the method
        run
        is that it may take any action whatsoever.
        Throws:
        java.lang.InterruptedException - the interrupted exception
        java.util.concurrent.ExecutionException - the execution exception
        java.util.concurrent.TimeoutException - the timeout exception
        See Also:
        java.lang.Thread#run()java.lang.Thread#run()java.lang.Thread#run()