public class MongoDbProducer
extends org.apache.camel.impl.DefaultProducer
Constructor and Description |
---|
MongoDbProducer(MongoDbEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
doAggregate(org.apache.camel.Exchange exchange)
All headers except collection and database are non available for this
operation.
|
protected void |
doCommand(org.apache.camel.Exchange exchange) |
protected void |
doCount(org.apache.camel.Exchange exchange) |
protected void |
doFindAll(org.apache.camel.Exchange exchange) |
protected void |
doFindById(org.apache.camel.Exchange exchange) |
protected void |
doFindOneByQuery(org.apache.camel.Exchange exchange) |
protected void |
doGetStats(org.apache.camel.Exchange exchange,
MongoDbOperation operation) |
protected void |
doInsert(org.apache.camel.Exchange exchange) |
protected void |
doRemove(org.apache.camel.Exchange exchange) |
protected void |
doSave(org.apache.camel.Exchange exchange) |
protected void |
doUpdate(org.apache.camel.Exchange exchange) |
protected void |
invokeOperation(MongoDbOperation operation,
org.apache.camel.Exchange exchange)
Entry method that selects the appropriate MongoDB operation and executes it
|
void |
process(org.apache.camel.Exchange exchange) |
createExchange, createExchange, createExchange, doStart, doStop, getEndpoint, isSingleton, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public MongoDbProducer(MongoDbEndpoint endpoint)
protected void invokeOperation(MongoDbOperation operation, org.apache.camel.Exchange exchange) throws Exception
operation
- exchange
- Exception
protected void doCommand(org.apache.camel.Exchange exchange) throws Exception
Exception
protected void doGetStats(org.apache.camel.Exchange exchange, MongoDbOperation operation) throws Exception
Exception
protected void doRemove(org.apache.camel.Exchange exchange) throws Exception
Exception
protected void doUpdate(org.apache.camel.Exchange exchange) throws Exception
Exception
protected void doFindById(org.apache.camel.Exchange exchange) throws Exception
Exception
protected void doInsert(org.apache.camel.Exchange exchange) throws Exception
Exception
protected void doFindAll(org.apache.camel.Exchange exchange) throws Exception
Exception
protected void doFindOneByQuery(org.apache.camel.Exchange exchange) throws Exception
Exception
protected void doCount(org.apache.camel.Exchange exchange) throws Exception
Exception
Apache Camel