238.4. Headers

名称类型描述

CamelNatsMessageTimestamp

long

消耗的消息的时间戳。

  制作者示例:

from("direct:send").to("nats://localhost:4222?topic=test");

如果使用授权,您可以在服务器 URL 中直接指定凭证

from("direct:send").to("nats://username:password@localhost:4222?topic=test");

或您的令牌

from("direct:send").to("nats://token@localhost:4222?topic=test");

使用者示例:

from("nats://localhost:4222?topic=test&maxMessages=5&queueName=test").to("mock:result");