Class ReactiveMongoDbMessageHandlerSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<ReactiveMongoDbMessageHandlerSpec, ReactiveMessageHandlerAdapter>
org.springframework.integration.dsl.MessageHandlerSpec<ReactiveMongoDbMessageHandlerSpec, ReactiveMessageHandlerAdapter>
org.springframework.integration.dsl.ReactiveMessageHandlerSpec<ReactiveMongoDbMessageHandlerSpec, ReactiveMongoDbStoringMessageHandler>
org.springframework.integration.mongodb.dsl.ReactiveMongoDbMessageHandlerSpec
- All Implemented Interfaces:
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 ReactiveMessageHandlerSpec
reactiveMessageHandlerFields inherited from class IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReactiveMongoDbMessageHandlerSpec(ReactiveMongoOperations reactiveMongoOperations) protectedReactiveMongoDbMessageHandlerSpec(ReactiveMongoDatabaseFactory mongoDbFactory) -
Method Summary
Modifier and TypeMethodDescriptioncollectionName(String collectionName) Configure a collection name to store data.collectionNameExpression(Expression collectionNameExpression) Configure a SpEL expression to evaluate a collection name against a request message.collectionNameFunction(Function<Message<P>, String> collectionNameFunction) Configure aFunctionfor evaluation a collection against request message.mongoConverter(MongoConverter mongoConverter) Configure aMongoConverter.Methods inherited from class ReactiveMessageHandlerSpec
getComponentsToRegisterMethods inherited from class IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentsRegistration
getComponentsToRegisterMethods inherited from interface FactoryBean
isSingletonMethods inherited from interface SmartLifecycle
isPauseable
-
Constructor Details
-
ReactiveMongoDbMessageHandlerSpec
-
ReactiveMongoDbMessageHandlerSpec
-
-
Method Details
-
mongoConverter
Configure aMongoConverter.- Parameters:
mongoConverter- theMongoConverterto 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 aFunctionfor evaluation a collection against request message.- Type Parameters:
P- an expected payload type- Parameters:
collectionNameFunction- theFunctionto 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
-