Skip to content

Spring-retry set to try again 6 times the results of retry 36 times #84

Closed
@liusy456

Description

@liusy456

hello:
Spring-retry set to try again 6 times the results of retry 36 times;
eg:

@Retryable(include = {Exception.class, SdkClientException.class,ServiceException.class, UnknownHostException.class},
            exclude = WrongParameterException.class,
            maxAttempts = 6,
            backoff = @Backoff(delay = 1000l,multiplier = 1.2))
    public   <T> T callApi(Map<String, String> params, String apiPath, Class<T> type) throws WrongParameterException {
//do something
}

I am written according to your example, do not know why this is the case. Thank you

Activity

liusy456

liusy456 commented on Aug 2, 2017

@liusy456
Author

I use the spring version is 4.3.2, retry version is 1.2.0

liusy456

liusy456 commented on Aug 3, 2017

@liusy456
Author

I found that I was added shiro configuration, only the emergence of this situation, it is normal to get rid of

liusy456

liusy456 commented on Aug 3, 2017

@liusy456
Author

Solved, because the second spring agent problem, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @liusy456

        Issue actions

          Spring-retry set to try again 6 times the results of retry 36 times · Issue #84 · spring-projects/spring-retry