Interface MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder

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

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

      • outputType

        default MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder outputType​(String outputType)
        Convert the output of the producer to the selected type : DocumentList Document or MongoIterable. DocumentList or MongoIterable applies to findAll and aggregate. Document applies to all other operations. The option will be converted to a org.apache.camel.component.mongodb.MongoDbOutputType type. Group: common
      • bridgeErrorHandler

        default MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder 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 MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder 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
      • persistentId

        default MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder persistentId​(String persistentId)
        One tail tracking collection can host many trackers for several tailable consumers. To keep them separate, each tracker should have its own unique persistentId. The option is a: java.lang.String type. Group: tail
      • persistentTailTracking

        default MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder persistentTailTracking​(boolean persistentTailTracking)
        Enable persistent tail tracking, which is a mechanism to keep track of the last consumed message across system restarts. The next time the system is up, the endpoint will recover the cursor from the point where it last stopped slurping records. The option is a: boolean type. Default: false Group: tail
      • persistentTailTracking

        default MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder persistentTailTracking​(String persistentTailTracking)
        Enable persistent tail tracking, which is a mechanism to keep track of the last consumed message across system restarts. The next time the system is up, the endpoint will recover the cursor from the point where it last stopped slurping records. The option will be converted to a boolean type. Default: false Group: tail
      • tailTrackCollection

        default MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder tailTrackCollection​(String tailTrackCollection)
        Collection where tail tracking information will be persisted. If not specified, MongoDbTailTrackingConfig#DEFAULT_COLLECTION will be used by default. The option is a: java.lang.String type. Group: tail
      • tailTrackDb

        default MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder tailTrackDb​(String tailTrackDb)
        Indicates what database the tail tracking mechanism will persist to. If not specified, the current database will be picked by default. Dynamicity will not be taken into account even if enabled, i.e. the tail tracking database will not vary past endpoint initialisation. The option is a: java.lang.String type. Group: tail
      • tailTrackIncreasingField

        default MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder tailTrackIncreasingField​(String tailTrackIncreasingField)
        Correlation field in the incoming record which is of increasing nature and will be used to position the tailing cursor every time it is generated. The cursor will be (re)created with a query of type: tailTrackIncreasingField greater than lastValue (possibly recovered from persistent tail tracking). Can be of type Integer, Date, String, etc. NOTE: No support for dot notation at the current time, so the field should be at the top level of the document. The option is a: java.lang.String type. Group: tail