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

发送延迟消息无效 #2

Open
goback619 opened this issue May 24, 2020 · 0 comments
Open

发送延迟消息无效 #2

goback619 opened this issue May 24, 2020 · 0 comments

Comments

@goback619
Copy link

发送延迟消息无效。
@OverRide
public void run(String... args) throws Exception {
// int count = 5;
// for (int index = 1; index <= count; index++) {
// source.output().send(MessageBuilder.withPayload("msg-" + index)
// .setHeader("index", index).build());
// }
source.output().send(MessageBuilder
.withPayload(objectMapper.writeValueAsString(new Person(99, "Jim")))
.setHeader("index", 9999)
.setHeader("DELAY", "5")
.setHeader(MessageHeaders.CONTENT_TYPE, MimeTypeUtils.APPLICATION_JSON)
.build());
}

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

1 participant