Interface SedaEndpointBuilderFactory.SedaEndpointProducerBuilder

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

    public static interface SedaEndpointBuilderFactory.SedaEndpointProducerBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Builder for endpoint producers for the SEDA component.
    • Method Detail

      • size

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder size​(int size)
        The maximum capacity of the SEDA queue (i.e., the number of messages it can hold). Will by default use the defaultSize set on the SEDA component. The option is a: int type. Default: 1000 Group: common
      • size

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder size​(String size)
        The maximum capacity of the SEDA queue (i.e., the number of messages it can hold). Will by default use the defaultSize set on the SEDA component. The option will be converted to a int type. Default: 1000 Group: common
      • blockWhenFull

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder blockWhenFull​(boolean blockWhenFull)
        Whether a thread that sends messages to a full SEDA queue will block until the queue's capacity is no longer exhausted. By default, an exception will be thrown stating that the queue is full. By enabling this option, the calling thread will instead block and wait until the message can be accepted. The option is a: boolean type. Default: false Group: producer
      • blockWhenFull

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder blockWhenFull​(String blockWhenFull)
        Whether a thread that sends messages to a full SEDA queue will block until the queue's capacity is no longer exhausted. By default, an exception will be thrown stating that the queue is full. By enabling this option, the calling thread will instead block and wait until the message can be accepted. The option will be converted to a boolean type. Default: false Group: producer
      • discardIfNoConsumers

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder discardIfNoConsumers​(boolean discardIfNoConsumers)
        Whether the producer should discard the message (do not add the message to the queue), when sending to a queue with no active consumers. Only one of the options discardIfNoConsumers and failIfNoConsumers can be enabled at the same time. The option is a: boolean type. Default: false Group: producer
      • discardIfNoConsumers

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder discardIfNoConsumers​(String discardIfNoConsumers)
        Whether the producer should discard the message (do not add the message to the queue), when sending to a queue with no active consumers. Only one of the options discardIfNoConsumers and failIfNoConsumers can be enabled at the same time. The option will be converted to a boolean type. Default: false Group: producer
      • discardWhenFull

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder discardWhenFull​(boolean discardWhenFull)
        Whether a thread that sends messages to a full SEDA queue will be discarded. By default, an exception will be thrown stating that the queue is full. By enabling this option, the calling thread will give up sending and continue, meaning that the message was not sent to the SEDA queue. The option is a: boolean type. Default: false Group: producer
      • discardWhenFull

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder discardWhenFull​(String discardWhenFull)
        Whether a thread that sends messages to a full SEDA queue will be discarded. By default, an exception will be thrown stating that the queue is full. By enabling this option, the calling thread will give up sending and continue, meaning that the message was not sent to the SEDA queue. The option will be converted to a boolean type. Default: false Group: producer
      • failIfNoConsumers

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder failIfNoConsumers​(boolean failIfNoConsumers)
        Whether the producer should fail by throwing an exception, when sending to a queue with no active consumers. Only one of the options discardIfNoConsumers and failIfNoConsumers can be enabled at the same time. The option is a: boolean type. Default: false Group: producer
      • failIfNoConsumers

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder failIfNoConsumers​(String failIfNoConsumers)
        Whether the producer should fail by throwing an exception, when sending to a queue with no active consumers. Only one of the options discardIfNoConsumers and failIfNoConsumers can be enabled at the same time. The option will be converted to a boolean type. Default: false Group: producer
      • lazyStartProducer

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder 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 SedaEndpointBuilderFactory.SedaEndpointProducerBuilder 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
      • offerTimeout

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder offerTimeout​(long offerTimeout)
        offerTimeout (in milliseconds) can be added to the block case when queue is full. You can disable timeout by using 0 or a negative value. The option is a: long type. Group: producer
      • offerTimeout

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder offerTimeout​(String offerTimeout)
        offerTimeout (in milliseconds) can be added to the block case when queue is full. You can disable timeout by using 0 or a negative value. The option will be converted to a long type. Group: producer
      • timeout

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder timeout​(long timeout)
        Timeout (in milliseconds) before a SEDA producer will stop waiting for an asynchronous task to complete. You can disable timeout by using 0 or a negative value. The option is a: long type. Default: 30000 Group: producer
      • timeout

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder timeout​(String timeout)
        Timeout (in milliseconds) before a SEDA producer will stop waiting for an asynchronous task to complete. You can disable timeout by using 0 or a negative value. The option will be converted to a long type. Default: 30000 Group: producer
      • waitForTaskToComplete

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder waitForTaskToComplete​(org.apache.camel.WaitForTaskToComplete waitForTaskToComplete)
        Option to specify whether the caller should wait for the async task to complete or not before continuing. The following three options are supported: Always, Never or IfReplyExpected. The first two values are self-explanatory. The last value, IfReplyExpected, will only wait if the message is Request Reply based. The default option is IfReplyExpected. The option is a: org.apache.camel.WaitForTaskToComplete type. Default: IfReplyExpected Group: producer
      • waitForTaskToComplete

        default SedaEndpointBuilderFactory.SedaEndpointProducerBuilder waitForTaskToComplete​(String waitForTaskToComplete)
        Option to specify whether the caller should wait for the async task to complete or not before continuing. The following three options are supported: Always, Never or IfReplyExpected. The first two values are self-explanatory. The last value, IfReplyExpected, will only wait if the message is Request Reply based. The default option is IfReplyExpected. The option will be converted to a org.apache.camel.WaitForTaskToComplete type. Default: IfReplyExpected Group: producer