Interface GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointConsumerBuilder, org.apache.camel.EndpointConsumerResolver
    All Known Subinterfaces:
    GridFsEndpointBuilderFactory.GridFsEndpointBuilder
    Enclosing interface:
    GridFsEndpointBuilderFactory

    public static interface GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder
    extends org.apache.camel.builder.EndpointConsumerBuilder
    Builder for endpoint consumers for the MongoDB GridFS component.
    • Method Detail

      • readPreference

        default GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder readPreference​(Object readPreference)
        Sets a MongoDB ReadPreference on the Mongo connection. Read preferences set directly on the connection will be overridden by this setting. The com.mongodb.ReadPreference#valueOf(String) utility method is used to resolve the passed readPreference value. Some examples for the possible values are nearest, primary or secondary etc. The option is a: com.mongodb.ReadPreference type. Group: common
      • readPreference

        default GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder readPreference​(String readPreference)
        Sets a MongoDB ReadPreference on the Mongo connection. Read preferences set directly on the connection will be overridden by this setting. The com.mongodb.ReadPreference#valueOf(String) utility method is used to resolve the passed readPreference value. Some examples for the possible values are nearest, primary or secondary etc. The option will be converted to a com.mongodb.ReadPreference type. Group: common
      • writeConcern

        default GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder writeConcern​(Object writeConcern)
        Set the WriteConcern for write operations on MongoDB using the standard ones. Resolved from the fields of the WriteConcern class by calling the WriteConcern#valueOf(String) method. The option is a: com.mongodb.WriteConcern type. Group: common
      • writeConcern

        default GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder writeConcern​(String writeConcern)
        Set the WriteConcern for write operations on MongoDB using the standard ones. Resolved from the fields of the WriteConcern class by calling the WriteConcern#valueOf(String) method. The option will be converted to a com.mongodb.WriteConcern type. Group: common
      • bridgeErrorHandler

        default GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder bridgeErrorHandler​(boolean bridgeErrorHandler)
        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 or ERROR level and ignored. The option is a: boolean type. Default: false Group: consumer
      • bridgeErrorHandler

        default GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder bridgeErrorHandler​(String bridgeErrorHandler)
        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 or ERROR level and ignored. The option will be converted to a boolean type. Default: false Group: consumer
      • fileAttributeName

        default GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder fileAttributeName​(String fileAttributeName)
        If the QueryType uses a FileAttribute, this sets the name of the attribute that is used. Default is camel-processed. The option is a: java.lang.String type. Default: camel-processed Group: consumer
      • persistentTSCollection

        default GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder persistentTSCollection​(String persistentTSCollection)
        If the QueryType uses a persistent timestamp, this sets the name of the collection within the DB to store the timestamp. The option is a: java.lang.String type. Default: camel-timestamps Group: consumer
      • persistentTSObject

        default GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder persistentTSObject​(String persistentTSObject)
        If the QueryType uses a persistent timestamp, this is the ID of the object in the collection to store the timestamp. The option is a: java.lang.String type. Default: camel-timestamp Group: consumer
      • queryStrategy

        default GridFsEndpointBuilderFactory.GridFsEndpointConsumerBuilder queryStrategy​(String queryStrategy)
        Sets the QueryStrategy that is used for polling for new files. Default is Timestamp. The option will be converted to a org.apache.camel.component.mongodb.gridfs.QueryStrategy type. Default: TimeStamp Group: consumer