Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong documentation for delayed message #580

Closed
fjmpaez911 opened this issue Mar 9, 2017 · 2 comments
Closed

Wrong documentation for delayed message #580

fjmpaez911 opened this issue Mar 9, 2017 · 2 comments
Assignees

Comments

@fjmpaez911
Copy link

fjmpaez911 commented Mar 9, 2017

In the chapter of Reference Manual said:

properties.setXDelay(15000);

when this method doesn't exists.

The correct method is (setDelay):

/**

  • Set the x-delay header.
  • @param delay the delay.
  • @SInCE 1.6
    */
    public void setDelay(Integer delay) {
    if (delay == null || delay < 0) {
    this.headers.remove(X_DELAY);
    }
    else {
    this.headers.put(X_DELAY, delay);
    }
    }
@artembilan
Copy link
Member

@fjmpaez911 ,

Please, consider contribution with the fix on the matter: https://github.com/spring-projects/spring-amqp/blob/master/CONTRIBUTING.adoc

@artembilan artembilan self-assigned this Mar 27, 2017
@artembilan
Copy link
Member

Fixed via abc4e5a in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants