类 SimpleRetryExceptionHandler

    • 构造器概要

      构造器 
      构造器说明
      SimpleRetryExceptionHandler​(org.springframework.retry.RetryPolicy retryPolicy, ExceptionHandler exceptionHandler, java.util.Collection<java.lang.Class<? extends java.lang.Throwable>> fatalExceptionClasses)
      Create an exception handler from its mandatory properties.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      <T,​E extends java.lang.Throwable>
      void
      close​(org.springframework.retry.RetryContext context, org.springframework.retry.RetryCallback<T,​E> callback, java.lang.Throwable throwable)
      If retry is exhausted set up some state in the context that can be used to signal that the exception should be handled.
      voidhandleException​(RepeatContext context, java.lang.Throwable throwable)
      Check if the exception is going to be retried, and veto the handling if it is.
      • 从类继承的方法 org.springframework.retry.listener.RetryListenerSupport

        onError, open
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • SimpleRetryExceptionHandler

        public SimpleRetryExceptionHandler​(org.springframework.retry.RetryPolicy retryPolicy,
                                           ExceptionHandler exceptionHandler,
                                           java.util.Collection<java.lang.Class<? extends java.lang.Throwable>> fatalExceptionClasses)
        Create an exception handler from its mandatory properties.
        参数:
        retryPolicy - the retry policy that will be under effect when an exception is encountered
        exceptionHandler - the delegate to use if an exception actually needs to be handled
        fatalExceptionClasses - exceptions
    • 方法详细资料

      • close

        public <T,​E extends java.lang.Throwable> void close​(org.springframework.retry.RetryContext context,
                                                                  org.springframework.retry.RetryCallback<T,​E> callback,
                                                                  java.lang.Throwable throwable)
        If retry is exhausted set up some state in the context that can be used to signal that the exception should be handled.
        指定者:
        close 在接口中 org.springframework.retry.RetryListener
        覆盖:
        close 在类中 org.springframework.retry.listener.RetryListenerSupport
        另请参阅:
        RetryListener.close(org.springframework.retry.RetryContext, org.springframework.retry.RetryCallback, java.lang.Throwable)