Class ReactiveMongoDbMessageHandlerSpec

java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<S,org.springframework.integration.handler.ReactiveMessageHandlerAdapter>
org.springframework.integration.dsl.ReactiveMessageHandlerSpec<ReactiveMongoDbMessageHandlerSpec,ReactiveMongoDbStoringMessageHandler>
org.springframework.integration.mongodb.dsl.ReactiveMongoDbMessageHandlerSpec
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.springframework.integration.handler.ReactiveMessageHandlerAdapter>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, org.springframework.integration.dsl.ComponentsRegistration

public class ReactiveMongoDbMessageHandlerSpec extends org.springframework.integration.dsl.ReactiveMessageHandlerSpec<ReactiveMongoDbMessageHandlerSpec,ReactiveMongoDbStoringMessageHandler> implements org.springframework.integration.dsl.ComponentsRegistration
A ReactiveMessageHandlerSpec extension for the Reactive MongoDb Outbound endpoint ReactiveMongoDbStoringMessageHandler.
Since:
5.3
  • Field Summary

    Fields inherited from class org.springframework.integration.dsl.ReactiveMessageHandlerSpec

    reactiveMessageHandler

    Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    logger, PARSER, target

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ReactiveMongoDbMessageHandlerSpec(org.springframework.data.mongodb.core.ReactiveMongoOperations reactiveMongoOperations)
     
    protected
    ReactiveMongoDbMessageHandlerSpec(org.springframework.data.mongodb.ReactiveMongoDatabaseFactory mongoDbFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    collectionName(String collectionName)
    Configure a collection name to store data.
    collectionNameExpression(org.springframework.expression.Expression collectionNameExpression)
    Configure a SpEL expression to evaluate a collection name against a request message.
    collectionNameFunction(Function<org.springframework.messaging.Message<P>,String> collectionNameFunction)
    Configure a Function for evaluation a collection against request message.
    mongoConverter(org.springframework.data.mongodb.core.convert.MongoConverter mongoConverter)
    Configure a MongoConverter.

    Methods inherited from class org.springframework.integration.dsl.ReactiveMessageHandlerSpec

    getComponentsToRegister

    Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    _this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.integration.dsl.ComponentsRegistration

    getComponentsToRegister

    Methods inherited from interface org.springframework.beans.factory.FactoryBean

    isSingleton
  • Constructor Details

    • ReactiveMongoDbMessageHandlerSpec

      protected ReactiveMongoDbMessageHandlerSpec(org.springframework.data.mongodb.ReactiveMongoDatabaseFactory mongoDbFactory)
    • ReactiveMongoDbMessageHandlerSpec

      protected ReactiveMongoDbMessageHandlerSpec(org.springframework.data.mongodb.core.ReactiveMongoOperations reactiveMongoOperations)
  • Method Details

    • mongoConverter

      public ReactiveMongoDbMessageHandlerSpec mongoConverter(org.springframework.data.mongodb.core.convert.MongoConverter mongoConverter)
      Configure a MongoConverter.
      Parameters:
      mongoConverter - the MongoConverter to use.
      Returns:
      the spec
    • collectionName

      public ReactiveMongoDbMessageHandlerSpec collectionName(String collectionName)
      Configure a collection name to store data.
      Parameters:
      collectionName - the explicit collection name to use.
      Returns:
      the spec
    • collectionNameFunction

      public <P> ReactiveMongoDbMessageHandlerSpec collectionNameFunction(Function<org.springframework.messaging.Message<P>,String> collectionNameFunction)
      Configure a Function for evaluation a collection against request message.
      Type Parameters:
      P - an expected payload type
      Parameters:
      collectionNameFunction - the Function to determine a collection name at runtime.
      Returns:
      the spec
    • collectionNameExpression

      public ReactiveMongoDbMessageHandlerSpec collectionNameExpression(org.springframework.expression.Expression collectionNameExpression)
      Configure a SpEL expression to evaluate a collection name against a request message.
      Parameters:
      collectionNameExpression - the SpEL expression to use.
      Returns:
      the spec