Class ReactiveMongoDbMessageHandlerSpec

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
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.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, 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

    PARSER, target

    Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    logger

    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
    ReactiveMongoDbMessageHandlerSpec collectionName​(java.lang.String collectionName)
    Configure a collection name to store data.
    ReactiveMongoDbMessageHandlerSpec collectionNameExpression​(org.springframework.expression.Expression collectionNameExpression)
    Configure a SpEL expression to evaluate a collection name against a request message.
    <P> ReactiveMongoDbMessageHandlerSpec collectionNameFunction​(java.util.function.Function<org.springframework.messaging.Message<P>,​java.lang.String> collectionNameFunction)
    Configure a Function for evaluation a collection against request message.
    ReactiveMongoDbMessageHandlerSpec 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, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    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
  • 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​(java.lang.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​(java.util.function.Function<org.springframework.messaging.Message<P>,​java.lang.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