Interface ControlBusEndpointBuilderFactory.ControlBusEndpointBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
    Enclosing interface:
    ControlBusEndpointBuilderFactory

    public static interface ControlBusEndpointBuilderFactory.ControlBusEndpointBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Builder for endpoint for the Control Bus component.
    • Method Detail

      • action

        default ControlBusEndpointBuilderFactory.ControlBusEndpointBuilder action​(String action)
        To denote an action that can be either: start, stop, or status. To either start or stop a route, or to get the status of the route as output in the message body. You can use suspend and resume from Camel 2.11.1 onwards to either suspend or resume a route. And from Camel 2.11.1 onwards you can use stats to get performance statics returned in XML format; the routeId option can be used to define which route to get the performance stats for, if routeId is not defined, then you get statistics for the entire CamelContext. The restart action will restart the route. The option is a: java.lang.String type. Group: producer
      • async

        default ControlBusEndpointBuilderFactory.ControlBusEndpointBuilder async​(boolean async)
        Whether to execute the control bus task asynchronously. Important: If this option is enabled, then any result from the task is not set on the Exchange. This is only possible if executing tasks synchronously. The option is a: boolean type. Default: false Group: producer
      • async

        default ControlBusEndpointBuilderFactory.ControlBusEndpointBuilder async​(String async)
        Whether to execute the control bus task asynchronously. Important: If this option is enabled, then any result from the task is not set on the Exchange. This is only possible if executing tasks synchronously. The option will be converted to a boolean type. Default: false Group: producer
      • lazyStartProducer

        default ControlBusEndpointBuilderFactory.ControlBusEndpointBuilder 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 ControlBusEndpointBuilderFactory.ControlBusEndpointBuilder 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
      • loggingLevel

        default ControlBusEndpointBuilderFactory.ControlBusEndpointBuilder loggingLevel​(org.apache.camel.LoggingLevel loggingLevel)
        Logging level used for logging when task is done, or if any exceptions occurred during processing the task. The option is a: org.apache.camel.LoggingLevel type. Default: INFO Group: producer
      • loggingLevel

        default ControlBusEndpointBuilderFactory.ControlBusEndpointBuilder loggingLevel​(String loggingLevel)
        Logging level used for logging when task is done, or if any exceptions occurred during processing the task. The option will be converted to a org.apache.camel.LoggingLevel type. Default: INFO Group: producer