MongoDBGridFS

MongoDBGridFS

Scheme: gridfs
Syntax: gridfs:connectionBean
Description: Component for working with MongoDB GridFS.
Deprecated:false
Async:false
Maven: org.apache.camel/camel-mongodb-gridfs/2.18.1.redhat-000035

Component for working with MongoDB GridFS.

Name Kind Group Required Default Type Enum Description
connectionBean path common true java.lang.String Name of {@link com.mongodb.Mongo} to use.
bucket parameter common fs java.lang.String Sets the name of the GridFS bucket within the database. Default is "fs". @param database name of the MongoDB database
database parameter common true java.lang.String Sets the name of the MongoDB database to target @param database name of the MongoDB database
readPreference parameter common com.mongodb.ReadPreference Sets a MongoDB {@link ReadPreference} on the Mongo connection. Read preferences set directly on the connection will be overridden by this setting.

The {@link com.mongodb.ReadPreference#valueOf(String)} utility method is used to resolve the passed {@code readPreference} value. Some examples for the possible values are {@code nearest}, {@code primary} or {@code secondary} etc. @param readPreference the name of the read preference to set

writeConcern parameter common com.mongodb.WriteConcern ACKNOWLEDGED
W1
W2
W3
UNACKNOWLEDGED
JOURNALED
MAJORITY
SAFE
Set the {@link WriteConcern} for write operations on MongoDB using the standard ones. Resolved from the fields of the WriteConcern class by calling the {@link WriteConcern#valueOf(String)} method. @param writeConcern the standard name of the WriteConcern @see possible options
writeConcernRef parameter common com.mongodb.WriteConcern Set the {@link WriteConcern} for write operations on MongoDB, passing in the bean ref to a custom WriteConcern which exists in the Registry. You can also use standard WriteConcerns by passing in their key. See the {@link #setWriteConcern(String) setWriteConcern} method. @param writeConcernRef the name of the bean in the registry that represents the WriteConcern to use
bridgeErrorHandler parameter consumer boolean Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored.
delay parameter consumer 500 long Sets the delay between polls within the Consumer. Default is 500ms @param delay
fileAttributeName parameter consumer camel-processed java.lang.String If the QueryType uses a FileAttribute, this sets the name of the attribute that is used. Default is "camel-processed". @param f
initialDelay parameter consumer 1000 long Sets the initialDelay before the consumer will start polling. Default is 1000ms @param initialDelay
persistentTSCollection parameter consumer camel-timestamps java.lang.String If the QueryType uses a persistent timestamp, this sets the name of the collection within the DB to store the timestamp. @param s
persistentTSObject parameter consumer camel-timestamp java.lang.String If the QueryType uses a persistent timestamp, this is the ID of the object in the collection to store the timestamp. @param s
query parameter consumer java.lang.String Additional query parameters (in JSON) that are used to configure the query used for finding files in the GridFsConsumer @param query
queryStrategy parameter consumer TimeStamp org.apache.camel.component.gridfs.GridFsEndpoint.QueryStrategy Sets the QueryStrategy that is used for polling for new files. Default is Timestamp @see QueryStrategy @param s
exceptionHandler parameter consumer (advanced) org.apache.camel.spi.ExceptionHandler To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored.
exchangePattern parameter consumer (advanced) org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the exchange pattern when the consumer creates an exchange.
operation parameter producer java.lang.String Sets the operation this endpoint will execute against GridRS.
synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).