Class ShouldBeCompletedWithin

    • Field Detail

      • SHOULD_BE_COMPLETED_WITHIN_DURATION

        private static final java.lang.String SHOULD_BE_COMPLETED_WITHIN_DURATION
        See Also:
        Constant Field Values
      • SHOULD_BE_COMPLETED_WITHIN

        private static final java.lang.String SHOULD_BE_COMPLETED_WITHIN
        See Also:
        Constant Field Values
    • Constructor Detail

      • ShouldBeCompletedWithin

        private ShouldBeCompletedWithin​(java.util.concurrent.CompletableFuture<?> actual,
                                        java.time.Duration duration,
                                        java.lang.Exception exception)
      • ShouldBeCompletedWithin

        private ShouldBeCompletedWithin​(java.util.concurrent.CompletableFuture<?> actual,
                                        long timeout,
                                        java.util.concurrent.TimeUnit timeUnit,
                                        java.lang.Exception exception)
    • Method Detail

      • shouldBeCompletedWithin

        public static ErrorMessageFactory shouldBeCompletedWithin​(java.util.concurrent.CompletableFuture<?> actual,
                                                                  java.time.Duration duration,
                                                                  java.lang.Exception exception)
      • shouldBeCompletedWithin

        public static ErrorMessageFactory shouldBeCompletedWithin​(java.util.concurrent.CompletableFuture<?> actual,
                                                                  long timeout,
                                                                  java.util.concurrent.TimeUnit timeUnit,
                                                                  java.lang.Exception exception)
      • toChronoUnit

        private static java.time.temporal.ChronoUnit toChronoUnit​(java.util.concurrent.TimeUnit timeUnit)