public class MongoDbOutboundGateway extends AbstractReplyProducingMessageHandler
MongoOperations
AbstractReplyProducingMessageHandler.RequestHandler
IntegrationManagement.ManagementOverrides
messagingTemplate
EXPRESSION_PARSER, logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
MongoDbOutboundGateway(MongoDatabaseFactory mongoDbFactory) |
MongoDbOutboundGateway(MongoDatabaseFactory mongoDbFactory,
MongoConverter mongoConverter) |
MongoDbOutboundGateway(MongoOperations mongoTemplate) |
Modifier and Type | Method and Description |
---|---|
protected void |
doInit() |
protected Object |
handleRequestMessage(Message<?> requestMessage)
Subclasses must implement this method to handle the request Message.
|
void |
setCollectionNameExpression(Expression collectionNameExpression) |
void |
setCollectionNameExpressionString(String collectionNameExpressionString) |
void |
setEntityClass(Class<?> entityClass) |
void |
setExpectSingleResult(boolean expectSingleResult) |
void |
setMessageCollectionCallback(MessageCollectionCallback<?> collectionCallback)
Specify a
MessageCollectionCallback to perform against MongoDB collection
in the request message context. |
void |
setMongoConverter(MongoConverter mongoConverter) |
void |
setQueryExpression(Expression queryExpression) |
void |
setQueryExpressionString(String queryExpressionString) |
doInvokeAdvisedRequestHandler, getBeanClassLoader, getIntegrationPatternType, getRequiresReply, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReply
addNotPropagatedHeaders, createOutputMessage, getNotPropagatedHeaders, getOutputChannel, isAsync, messageBuilderForReply, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setNotPropagatedHeaders, setOutputChannel, setOutputChannelName, setSendTimeout, shouldCopyRequestHeaders, shouldSplitOutput, updateNotPropagatedHeaders
handleMessage, onComplete, onError, onNext, onSubscribe
buildSendTimer, destroy, getComponentType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getThisAs
getBeanName, getComponentName
public MongoDbOutboundGateway(MongoDatabaseFactory mongoDbFactory)
public MongoDbOutboundGateway(MongoDatabaseFactory mongoDbFactory, MongoConverter mongoConverter)
public MongoDbOutboundGateway(MongoOperations mongoTemplate)
public void setQueryExpression(Expression queryExpression)
public void setQueryExpressionString(String queryExpressionString)
public void setMessageCollectionCallback(MessageCollectionCallback<?> collectionCallback)
MessageCollectionCallback
to perform against MongoDB collection
in the request message context.collectionCallback
- the callback to perform against MongoDB collection.public void setExpectSingleResult(boolean expectSingleResult)
public void setEntityClass(Class<?> entityClass)
public void setCollectionNameExpression(Expression collectionNameExpression)
public void setCollectionNameExpressionString(String collectionNameExpressionString)
public void setMongoConverter(MongoConverter mongoConverter)
protected void doInit()
doInit
in class AbstractReplyProducingMessageHandler
protected Object handleRequestMessage(Message<?> requestMessage)
AbstractReplyProducingMessageHandler
handleRequestMessage
in class AbstractReplyProducingMessageHandler
requestMessage
- The request message.null
.