Class ExceptionHandler

    • Method Detail

      • shouldRetry

        public boolean shouldRetry​(Throwable prevThrowable,
                                   Object prevResponse)
        Specified by:
        shouldRetry in interface com.google.api.gax.retrying.ResultRetryAlgorithm<Object>
      • createNextAttempt

        public com.google.api.gax.retrying.TimedAttemptSettings createNextAttempt​(Throwable prevThrowable,
                                                                                  Object prevResponse,
                                                                                  com.google.api.gax.retrying.TimedAttemptSettings prevSettings)
        Specified by:
        createNextAttempt in interface com.google.api.gax.retrying.ResultRetryAlgorithm<Object>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDefaultInstance

        public static ExceptionHandler getDefaultInstance()
        Returns an instance which retry any checked exception and abort on any runtime exception.