Interface JarsignerSignMojo.WaitStrategy

Enclosing class:
JarsignerSignMojo
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface static interface JarsignerSignMojo.WaitStrategy
Wait/sleep after a signing failure before the next re-try should happen.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    waitAfterFailure(int attempt, Duration maxRetryDelay)
    Will be called after a signing failure, if a re-try is about to happen.
  • Method Details

    • waitAfterFailure

      void waitAfterFailure(int attempt, Duration maxRetryDelay) throws org.apache.maven.plugin.MojoExecutionException
      Will be called after a signing failure, if a re-try is about to happen. May as a side effect sleep current thread for some time.
      Parameters:
      attempt - the attempt number (0 is the first)
      maxRetryDelay - the maximum duration to sleep (may be zero)
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if the sleep was interrupted