クラス MqttHeaderAccessor

java.lang.ObjectSE
org.springframework.integration.mqtt.support.MqttHeaderAccessor

public final class MqttHeaderAccessor extends ObjectSE
受信 MQTT メッセージヘッダーへの型付きアクセスのヘルパー。
導入:
5.3
作成者:
Gary Russell
  • メソッドの詳細

    • receivedTopic

      @Nullable public static StringSE receivedTopic(Message<?> message)
      受信したトピックヘッダーを返します。
      パラメーター:
      message - メッセージ。
      戻り値:
      ヘッダー。
    • id

      @Nullable public static IntegerSE id(Message<?> message)
      MQTT メッセージ ID を返します。
      パラメーター:
      message - メッセージ。
      戻り値:
      ヘッダー。
    • receivedQos

      @Nullable public static IntegerSE receivedQos(Message<?> message)
      受信した QOS ヘッダーを返します。
      パラメーター:
      message - メッセージ。
      戻り値:
      ヘッダー。
    • receivedRetained

      @Nullable public static BooleanSE receivedRetained(Message<?> message)
      受信した保持ヘッダーを返します。
      パラメーター:
      message - メッセージ。
      戻り値:
      ヘッダー。
    • duplicate

      @Nullable public static BooleanSE duplicate(Message<?> message)
      重複するヘッダーを返します。
      パラメーター:
      message - メッセージ。
      戻り値:
      ヘッダー。