238.4. ヘッダー

名前タイプ説明

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");