クラス RedisOutboundGateway

実装されたすべてのインターフェース:
org.reactivestreams.Subscriber<Message<?>>AwareBeanClassLoaderAwareBeanFactoryAwareBeanNameAwareDisposableBeanInitializingBeanApplicationContextAwareOrderedComponentSourceAwareExpressionCapableOrderableMessageProducerHeaderPropagationAwareIntegrationPatternNamedComponentIntegrationManagementTrackableComponentMessageHandlerreactor.core.CoreSubscriber<Message<?>>

public class RedisOutboundGateway extends AbstractReplyProducingMessageHandler
提供された引数を使用して Redis コマンドを実行し、コマンド結果を返すゲートウェイコンポーネントの実装。
導入:
4.0
作成者:
Artem Bilan, Gary Russell
  • コンストラクターの詳細

  • メソッドの詳細

    • setArgumentsSerializer

      public void setArgumentsSerializer(RedisSerializer<?> serializer)
    • setCommandExpression

      public void setCommandExpression(Expression commandExpression)
      パラメーター:
      commandExpression - SpEL 構文の文字列。
      導入:
      4.3
    • setCommandExpressionString

      public void setCommandExpressionString(StringSE commandExpression)
      パラメーター:
      commandExpression - SpEL 構文の文字列。
      導入:
      4.3
    • setArgumentsStrategy

      public void setArgumentsStrategy(ArgumentsStrategy argumentsStrategy)
    • setIntegrationEvaluationContext

      public void setIntegrationEvaluationContext(EvaluationContext evaluationContext)
    • getComponentType

      public StringSE getComponentType()
      クラスからコピーされた説明: IntegrationObjectSupport
      サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。
      次で指定:
      インターフェース NamedComponentgetComponentType 
      オーバーライド:
      クラス MessageHandlerSupportgetComponentType 
    • doInit

      protected void doInit()
      オーバーライド:
      クラス AbstractReplyProducingMessageHandlerdoInit 
    • handleRequestMessage

      protected ObjectSE handleRequestMessage(Message<?> requestMessage)
      クラスからコピーされた説明: AbstractReplyProducingMessageHandler
      サブクラスはこのメソッドを実装して、リクエストメッセージを処理する必要があります。戻り値は、メッセージ、MessageBuilder、任意のプレーンオブジェクトです。基本クラスは、これらの開始点のいずれかからの返信メッセージの最終的な作成を処理します。戻り値が null の場合、メッセージフローはここで終了します。
      次で指定:
      クラス AbstractReplyProducingMessageHandlerhandleRequestMessage 
      パラメーター:
      requestMessage - リクエストメッセージ。
      戻り値:
      メッセージを処理した結果、または null