Class PollingTimeoutError

    • Constructor Summary

      Constructors 
      Constructor Description
      PollingTimeoutError​(java.lang.String message, int elapsedMs, int maxWaitMs)
      Creates a new PollingTimeoutError.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getElapsedMs()
      Returns the actual elapsed time before the timeout occurred.
      int getMaxWaitMs()
      Returns the configured maximum wait time that was exceeded.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PollingTimeoutError

        public PollingTimeoutError​(java.lang.String message,
                                   int elapsedMs,
                                   int maxWaitMs)
        Creates a new PollingTimeoutError.
        Parameters:
        message - Descriptive error message
        elapsedMs - Actual elapsed time in milliseconds before timeout
        maxWaitMs - Configured maximum wait time in milliseconds
    • Method Detail

      • getElapsedMs

        public int getElapsedMs()
        Returns the actual elapsed time before the timeout occurred.
        Returns:
        Elapsed time in milliseconds
      • getMaxWaitMs

        public int getMaxWaitMs()
        Returns the configured maximum wait time that was exceeded.
        Returns:
        Maximum wait time in milliseconds