@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, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
build, doFail, doInit, 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, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public 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.DefaultComponent
Exception
public com.mongodb.client.MongoClient getMongoConnection()
public void setMongoConnection(com.mongodb.client.MongoClient mongoConnection)
public static CamelMongoDbException wrapInCamelMongoDbException(Throwable t)
Apache Camel