@ Override public boolean canRetry ( RetryContext context ) { Throwable t = context . getLastThrowable ( ) ; return ( t == null || retryForException ( t ) ) && context . getRetryCount ( ) < this . maxAttempts ; }
Test for retryable operation based on the status .