public class ReactiveMongoDbMessageHandlerSpec extends ReactiveMessageHandlerSpec<ReactiveMongoDbMessageHandlerSpec,ReactiveMongoDbStoringMessageHandler> implements ComponentsRegistration
ReactiveMessageHandlerSpec
extension for the Reactive MongoDb Outbound endpoint
ReactiveMongoDbStoringMessageHandler
.reactiveMessageHandler
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
ReactiveMongoDbMessageHandlerSpec(ReactiveMongoDatabaseFactory mongoDbFactory) |
protected |
ReactiveMongoDbMessageHandlerSpec(ReactiveMongoOperations reactiveMongoOperations) |
Modifier and Type | Method and 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(java.util.function.Function<Message<P>,String> collectionNameFunction)
Configure a
Function for evaluation a collection against request message. |
ReactiveMongoDbMessageHandlerSpec |
mongoConverter(MongoConverter mongoConverter)
Configure a
MongoConverter . |
getComponentsToRegister
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentsToRegister
protected ReactiveMongoDbMessageHandlerSpec(ReactiveMongoDatabaseFactory mongoDbFactory)
protected ReactiveMongoDbMessageHandlerSpec(ReactiveMongoOperations reactiveMongoOperations)
public ReactiveMongoDbMessageHandlerSpec mongoConverter(MongoConverter mongoConverter)
MongoConverter
.mongoConverter
- the MongoConverter
to use.public ReactiveMongoDbMessageHandlerSpec collectionName(String collectionName)
collectionName
- the explicit collection name to use.public <P> ReactiveMongoDbMessageHandlerSpec collectionNameFunction(java.util.function.Function<Message<P>,String> collectionNameFunction)
Function
for evaluation a collection against request message.P
- an expected payload typecollectionNameFunction
- the Function
to determine a collection name at runtime.public ReactiveMongoDbMessageHandlerSpec collectionNameExpression(Expression collectionNameExpression)
collectionNameExpression
- the SpEL expression to use.