クラス RepublishMessageRecovererWithConfirms

    • コンストラクターの詳細

      • RepublishMessageRecovererWithConfirms

        public RepublishMessageRecovererWithConfirms​(RabbitTemplate errorTemplate,
                                                     CachingConnectionFactory.ConfirmType confirmType)
        提供されたテンプレートを使用して、提供された確認型でメッセージを公開します。テンプレートとその接続ファクトリは、確認型をサポートするように適切に構成する必要があります。
        パラメーター:
        errorTemplate - テンプレート。
        confirmType - 確認型。
      • RepublishMessageRecovererWithConfirms

        public RepublishMessageRecovererWithConfirms​(RabbitTemplate errorTemplate,
                                                     StringSE errorExchange,
                                                     CachingConnectionFactory.ConfirmType confirmType)
        提供されたテンプレートを使用して、提供された確認型のメッセージを、デフォルトのルーティングキーを使用して提供されたエクスチェンジにパブリッシュします。テンプレートとその接続ファクトリは、確認型をサポートするように適切に構成する必要があります。
        パラメーター:
        errorTemplate - テンプレート。
        confirmType - 確認型。
        errorExchange - 交換。
      • RepublishMessageRecovererWithConfirms

        public RepublishMessageRecovererWithConfirms​(RabbitTemplate errorTemplate,
                                                     StringSE errorExchange,
                                                     StringSE errorRoutingKey,
                                                     CachingConnectionFactory.ConfirmType confirmType)
        提供されたテンプレートを使用して、提供された確認型のメッセージを、提供されたルーティングキーを使用して提供された交換に発行します。テンプレートとその接続ファクトリは、確認型をサポートするように適切に構成する必要があります。
        パラメーター:
        errorTemplate - テンプレート。
        confirmType - 確認型。
        errorExchange - 交換。
        errorRoutingKey - ルーティングキー。
    • メソッドの詳細

      • setConfirmTimeout

        public void setConfirmTimeout​(long confirmTimeout)
        確認タイムアウトを設定します。デフォルトは 10 秒です。
        パラメーター:
        confirmTimeout - タイムアウト。
      • doSend

        protected void doSend​(@Nullable
                              StringSE exchange,
                              StringSE routingKey,
                              Message message)
        クラスからコピーされた説明: RepublishMessageRecoverer
        メッセージを送信します。
        オーバーライド:
        クラス RepublishMessageRecovererdoSend 
        パラメーター:
        exchange - テンプレートのデフォルトを使用する場合は exchange または null。
        routingKey - ルーティングキー。
        message - メッセージ。