クラス BrokerRouting

java.lang.ObjectSE
org.springframework.modulith.events.support.BrokerRouting
既知の直属サブクラス
BrokerRouting.SpelBrokerRouting

public class BrokerRouting extends ObjectSE
BrokerRouting は、キーが実際に SpEL 式になる可能性がある形式 $target::$key に一致する値を含む RoutingTarget インスタンスをサポートします。
導入:
1.1
作成者:
Oliver Drotbohm
  • メソッドの詳細

    • of

      public static BrokerRouting of(RoutingTarget target, EvaluationContext context)
      指定された RoutingTarget および EvaluationContext の新しい BrokerRouting を作成します。
      パラメーター:
      target - null であってはなりません。
      context - null であってはなりません。
      戻り値:
      null になることはありません。
    • getTarget

      public StringSE getTarget()
      実際のルーティングターゲットを返します。
      戻り値:
      null になることはありません。
    • getKey

      @Nullable public StringSE getKey(ObjectSE event)
      指定されたイベントに対してルーティングキーを解決します。元の RoutingTarget に式が含まれている場合、イベントはその式を評価するルートオブジェクトとして使用されます。
      パラメーター:
      event - null であってはなりません。
      戻り値:
      null でもかまいません。