Class CassandraMessageHandler

All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, Ordered, ComponentSourceAware, ExpressionCapable, Orderable, MessageProducer, HeaderPropagationAware, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>

public class CassandraMessageHandler extends AbstractReplyProducingMessageHandler
An AbstractReplyProducingMessageHandler implementation for Cassandra outbound operations.
Since:
6.0
Author:
Soby Chacko, Artem Bilan, Filippo Balicchia, Ngoc Nhan
  • Constructor Details

    • CassandraMessageHandler

      public CassandraMessageHandler(org.springframework.data.cassandra.core.ReactiveCassandraOperations cassandraOperations)
    • CassandraMessageHandler

      public CassandraMessageHandler(org.springframework.data.cassandra.core.ReactiveCassandraOperations cassandraOperations, CassandraMessageHandler.Type queryType)
  • Method Details

    • setIngestQuery

      public void setIngestQuery(String ingestQuery)
    • setWriteOptions

      public void setWriteOptions(org.springframework.data.cassandra.core.cql.WriteOptions writeOptions)
    • setProducesReply

      public void setProducesReply(boolean producesReply)
    • setStatementExpressionString

      public void setStatementExpressionString(String statementExpression)
    • setStatementExpression

      public void setStatementExpression(Expression statementExpression)
    • setQuery

      public void setQuery(String query)
    • setParameterExpressions

      public void setParameterExpressions(Map<String,Expression> parameterExpressions)
    • setStatementProcessor

      public void setStatementProcessor(MessageProcessor<com.datastax.oss.driver.api.core.cql.Statement<?>> statementProcessor)
    • getComponentType

      public String getComponentType()
      Description copied from class: IntegrationObjectSupport
      Subclasses may implement this method to provide component type information.
      Specified by:
      getComponentType in interface NamedComponent
      Overrides:
      getComponentType in class MessageHandlerSupport
    • doInit

      protected void doInit()
      Overrides:
      doInit in class AbstractReplyProducingMessageHandler
    • handleRequestMessage

      protected Object handleRequestMessage(Message<?> requestMessage)
      Description copied from class: AbstractReplyProducingMessageHandler
      Subclasses must implement this method to handle the request Message. The return value may be a Message, a MessageBuilder, or any plain Object. The base class will handle the final creation of a reply Message from any of those starting points. If the return value is null, the Message flow will end here.
      Specified by:
      handleRequestMessage in class AbstractReplyProducingMessageHandler
      Parameters:
      requestMessage - The request message.
      Returns:
      The result of handling the message, or null.