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,ReactiveMessageHandlerAdapter>
org.springframework.integration.dsl.ReactiveMessageHandlerSpec<ReactiveMongoDbMessageHandlerSpec,ReactiveMongoDbStoringMessageHandler>
org.springframework.integration.mongodb.dsl.ReactiveMongoDbMessageHandlerSpec
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<ReactiveMessageHandlerAdapter>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,ComponentsRegistration
public class ReactiveMongoDbMessageHandlerSpec extends ReactiveMessageHandlerSpec<ReactiveMongoDbMessageHandlerSpec,ReactiveMongoDbStoringMessageHandler> implements ComponentsRegistration
A
ReactiveMessageHandlerSpec
extension for the Reactive MongoDb Outbound endpoint
ReactiveMongoDbStoringMessageHandler
.- Since:
- 5.3
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.ReactiveMessageHandlerSpec
reactiveMessageHandler
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReactiveMongoDbMessageHandlerSpec(ReactiveMongoOperations reactiveMongoOperations)
protected
ReactiveMongoDbMessageHandlerSpec(ReactiveMongoDatabaseFactory mongoDbFactory)
-
Method Summary
Modifier and Type Method Description ReactiveMongoDbMessageHandlerSpec
collectionName(String collectionName)
Configure a collection name to store data.ReactiveMongoDbMessageHandlerSpec
collectionNameExpression(Expression collectionNameExpression)
Configure a SpEL expression to evaluate a collection name against a request message.<P> ReactiveMongoDbMessageHandlerSpec
collectionNameFunction(Function<Message<P>,String> collectionNameFunction)
Configure aFunction
for evaluation a collection against request message.ReactiveMongoDbMessageHandlerSpec
mongoConverter(MongoConverter mongoConverter)
Configure aMongoConverter
.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
-
Method Details
-
mongoConverter
Configure aMongoConverter
.- Parameters:
mongoConverter
- theMongoConverter
to use.- Returns:
- the spec
-
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<Message<P>,String> collectionNameFunction)Configure aFunction
for evaluation a collection against request message.- Type Parameters:
P
- an expected payload type- Parameters:
collectionNameFunction
- theFunction
to determine a collection name at runtime.- Returns:
- the spec
-
collectionNameExpression
public ReactiveMongoDbMessageHandlerSpec collectionNameExpression(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
-