@Component(value="mongodb")
public class MongoDbComponent
extends org.apache.camel.support.DefaultComponent
| Modifier and Type | Field and Description |
|---|---|
static Set<MongoDbOperation> |
WRITE_OPERATIONS |
| Constructor and Description |
|---|
MongoDbComponent() |
MongoDbComponent(org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
com.mongodb.client.MongoClient |
getMongoConnection()
Get the connection bean client used for connection.
|
void |
setMongoConnection(com.mongodb.client.MongoClient mongoConnection)
Shared client used for connection.
|
static CamelMongoDbException |
wrapInCamelMongoDbException(Throwable t) |
afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getDefaultName, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIbuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final Set<MongoDbOperation> WRITE_OPERATIONS
public MongoDbComponent()
public MongoDbComponent(org.apache.camel.CamelContext context)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponentExceptionpublic com.mongodb.client.MongoClient getMongoConnection()
public void setMongoConnection(com.mongodb.client.MongoClient mongoConnection)
public static CamelMongoDbException wrapInCamelMongoDbException(Throwable t)
Apache Camel