Interface MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder

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

    public static interface MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Builder for endpoint producers for the MongoDB component.
    • Method Detail

      • outputType

        default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder 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
      • lazyStartProducer

        default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder lazyStartProducer​(boolean lazyStartProducer)
        Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: boolean type. Default: false Group: producer
      • lazyStartProducer

        default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder lazyStartProducer​(String lazyStartProducer)
        Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to a boolean type. Default: false Group: producer
      • persistentId

        default MongoDbEndpointBuilderFactory.MongoDbEndpointProducerBuilder 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.MongoDbEndpointProducerBuilder 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.MongoDbEndpointProducerBuilder 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.MongoDbEndpointProducerBuilder 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.MongoDbEndpointProducerBuilder 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.MongoDbEndpointProducerBuilder 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