Interface MainShutdownStrategy

    • Method Detail

      • isRunAllowed

        boolean isRunAllowed()
        Returns true if the application is allowed to run.
        Returns:
        true if the application is allowed to run.
      • shutdown

        boolean shutdown()
        Return true if the shutdown has been initiated by the caller.
        Returns:
        true if the shutdown has been initiated by the caller.
      • await

        boolean await​(long timeout,
                      TimeUnit unit)
               throws InterruptedException
        Waiting for Camel Main to complete (with timeout).
        Parameters:
        timeout - the maximum time to wait
        unit - the time unit of the timeout argument
        Returns:
        true if Camel Main was completed before the timeout, false if timeout was triggered.
        Throws:
        InterruptedException
      • restartAwait

        void restartAwait()
        This is used for restarting await with timeout.