Interface CometdEndpointBuilderFactory.CometdEndpointProducerBuilder

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

    public static interface CometdEndpointBuilderFactory.CometdEndpointProducerBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Builder for endpoint producers for the CometD component.
    • Method Detail

      • baseResource

        default CometdEndpointBuilderFactory.CometdEndpointProducerBuilder baseResource​(String baseResource)
        The root directory for the web resources or classpath. Use the protocol file: or classpath: depending if you want that the component loads the resource from file system or classpath. Classpath is required for OSGI deployment where the resources are packaged in the jar. The option is a: java.lang.String type. Group: common
      • jsonCommented

        default CometdEndpointBuilderFactory.CometdEndpointProducerBuilder jsonCommented​(boolean jsonCommented)
        If true, the server will accept JSON wrapped in a comment and will generate JSON wrapped in a comment. This is a defence against Ajax Hijacking. The option is a: boolean type. Default: true Group: common
      • jsonCommented

        default CometdEndpointBuilderFactory.CometdEndpointProducerBuilder jsonCommented​(String jsonCommented)
        If true, the server will accept JSON wrapped in a comment and will generate JSON wrapped in a comment. This is a defence against Ajax Hijacking. The option will be converted to a boolean type. Default: true Group: common
      • maxInterval

        default CometdEndpointBuilderFactory.CometdEndpointProducerBuilder maxInterval​(int maxInterval)
        The max client side poll timeout in milliseconds. A client will be removed if a connection is not received in this time. The option is a: int type. Default: 30000 Group: common
      • disconnectLocalSession

        default CometdEndpointBuilderFactory.CometdEndpointProducerBuilder disconnectLocalSession​(boolean disconnectLocalSession)
        Whether to disconnect local sessions after publishing a message to its channel. Disconnecting local session is needed as they are not swept by default by CometD, and therefore you can run out of memory. The option is a: boolean type. Default: false Group: producer
      • disconnectLocalSession

        default CometdEndpointBuilderFactory.CometdEndpointProducerBuilder disconnectLocalSession​(String disconnectLocalSession)
        Whether to disconnect local sessions after publishing a message to its channel. Disconnecting local session is needed as they are not swept by default by CometD, and therefore you can run out of memory. The option will be converted to a boolean type. Default: false Group: producer
      • lazyStartProducer

        default CometdEndpointBuilderFactory.CometdEndpointProducerBuilder 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 CometdEndpointBuilderFactory.CometdEndpointProducerBuilder 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