Interface NatsEndpointBuilderFactory.NatsEndpointProducerBuilder

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

    public static interface NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Builder for endpoint producers for the Nats component.
    • Method Detail

      • connectionTimeout

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder connectionTimeout​(int connectionTimeout)
        Timeout for connection attempts. (in milliseconds). The option is a: <code>int</code> type. Default: 2000 Group: common
        Parameters:
        connectionTimeout - the value to set
        Returns:
        the dsl builder
      • connectionTimeout

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder connectionTimeout​(String connectionTimeout)
        Timeout for connection attempts. (in milliseconds). The option will be converted to a <code>int</code> type. Default: 2000 Group: common
        Parameters:
        connectionTimeout - the value to set
        Returns:
        the dsl builder
      • flushConnection

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder flushConnection​(boolean flushConnection)
        Define if we want to flush connection when stopping or not. The option is a: <code>boolean</code> type. Default: true Group: common
        Parameters:
        flushConnection - the value to set
        Returns:
        the dsl builder
      • flushConnection

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder flushConnection​(String flushConnection)
        Define if we want to flush connection when stopping or not. The option will be converted to a <code>boolean</code> type. Default: true Group: common
        Parameters:
        flushConnection - the value to set
        Returns:
        the dsl builder
      • flushTimeout

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder flushTimeout​(int flushTimeout)
        Set the flush timeout (in milliseconds). The option is a: <code>int</code> type. Default: 1000 Group: common
        Parameters:
        flushTimeout - the value to set
        Returns:
        the dsl builder
      • flushTimeout

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder flushTimeout​(String flushTimeout)
        Set the flush timeout (in milliseconds). The option will be converted to a <code>int</code> type. Default: 1000 Group: common
        Parameters:
        flushTimeout - the value to set
        Returns:
        the dsl builder
      • maxPingsOut

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder maxPingsOut​(int maxPingsOut)
        maximum number of pings have not received a response allowed by the client. The option is a: <code>int</code> type. Default: 2 Group: common
        Parameters:
        maxPingsOut - the value to set
        Returns:
        the dsl builder
      • maxPingsOut

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder maxPingsOut​(String maxPingsOut)
        maximum number of pings have not received a response allowed by the client. The option will be converted to a <code>int</code> type. Default: 2 Group: common
        Parameters:
        maxPingsOut - the value to set
        Returns:
        the dsl builder
      • maxReconnectAttempts

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder maxReconnectAttempts​(int maxReconnectAttempts)
        Max reconnection attempts. The option is a: <code>int</code> type. Default: 60 Group: common
        Parameters:
        maxReconnectAttempts - the value to set
        Returns:
        the dsl builder
      • maxReconnectAttempts

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder maxReconnectAttempts​(String maxReconnectAttempts)
        Max reconnection attempts. The option will be converted to a <code>int</code> type. Default: 60 Group: common
        Parameters:
        maxReconnectAttempts - the value to set
        Returns:
        the dsl builder
      • noEcho

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder noEcho​(boolean noEcho)
        Turn off echo. If supported by the gnatsd version you are connecting to this flag will prevent the server from echoing messages back to the connection if it has subscriptions on the subject being published to. The option is a: <code>boolean</code> type. Default: false Group: common
        Parameters:
        noEcho - the value to set
        Returns:
        the dsl builder
      • noEcho

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder noEcho​(String noEcho)
        Turn off echo. If supported by the gnatsd version you are connecting to this flag will prevent the server from echoing messages back to the connection if it has subscriptions on the subject being published to. The option will be converted to a <code>boolean</code> type. Default: false Group: common
        Parameters:
        noEcho - the value to set
        Returns:
        the dsl builder
      • noRandomizeServers

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder noRandomizeServers​(boolean noRandomizeServers)
        Whether or not randomizing the order of servers for the connection attempts. The option is a: <code>boolean</code> type. Default: false Group: common
        Parameters:
        noRandomizeServers - the value to set
        Returns:
        the dsl builder
      • noRandomizeServers

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder noRandomizeServers​(String noRandomizeServers)
        Whether or not randomizing the order of servers for the connection attempts. The option will be converted to a <code>boolean</code> type. Default: false Group: common
        Parameters:
        noRandomizeServers - the value to set
        Returns:
        the dsl builder
      • pedantic

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder pedantic​(boolean pedantic)
        Whether or not running in pedantic mode (this affects performance). The option is a: <code>boolean</code> type. Default: false Group: common
        Parameters:
        pedantic - the value to set
        Returns:
        the dsl builder
      • pedantic

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder pedantic​(String pedantic)
        Whether or not running in pedantic mode (this affects performance). The option will be converted to a <code>boolean</code> type. Default: false Group: common
        Parameters:
        pedantic - the value to set
        Returns:
        the dsl builder
      • pingInterval

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder pingInterval​(int pingInterval)
        Ping interval to be aware if connection is still alive (in milliseconds). The option is a: <code>int</code> type. Default: 120000 Group: common
        Parameters:
        pingInterval - the value to set
        Returns:
        the dsl builder
      • pingInterval

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder pingInterval​(String pingInterval)
        Ping interval to be aware if connection is still alive (in milliseconds). The option will be converted to a <code>int</code> type. Default: 120000 Group: common
        Parameters:
        pingInterval - the value to set
        Returns:
        the dsl builder
      • reconnect

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder reconnect​(boolean reconnect)
        Whether or not using reconnection feature. The option is a: <code>boolean</code> type. Default: true Group: common
        Parameters:
        reconnect - the value to set
        Returns:
        the dsl builder
      • reconnect

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder reconnect​(String reconnect)
        Whether or not using reconnection feature. The option will be converted to a <code>boolean</code> type. Default: true Group: common
        Parameters:
        reconnect - the value to set
        Returns:
        the dsl builder
      • reconnectTimeWait

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder reconnectTimeWait​(int reconnectTimeWait)
        Waiting time before attempts reconnection (in milliseconds). The option is a: <code>int</code> type. Default: 2000 Group: common
        Parameters:
        reconnectTimeWait - the value to set
        Returns:
        the dsl builder
      • reconnectTimeWait

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder reconnectTimeWait​(String reconnectTimeWait)
        Waiting time before attempts reconnection (in milliseconds). The option will be converted to a <code>int</code> type. Default: 2000 Group: common
        Parameters:
        reconnectTimeWait - the value to set
        Returns:
        the dsl builder
      • requestCleanupInterval

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder requestCleanupInterval​(int requestCleanupInterval)
        Interval to clean up cancelled/timed out requests. The option is a: <code>int</code> type. Default: 5000 Group: common
        Parameters:
        requestCleanupInterval - the value to set
        Returns:
        the dsl builder
      • requestCleanupInterval

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder requestCleanupInterval​(String requestCleanupInterval)
        Interval to clean up cancelled/timed out requests. The option will be converted to a <code>int</code> type. Default: 5000 Group: common
        Parameters:
        requestCleanupInterval - the value to set
        Returns:
        the dsl builder
      • servers

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder servers​(String servers)
        URLs to one or more NAT servers. Use comma to separate URLs when specifying multiple servers. The option is a: <code>java.lang.String</code> type. Group: common
        Parameters:
        servers - the value to set
        Returns:
        the dsl builder
      • verbose

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder verbose​(boolean verbose)
        Whether or not running in verbose mode. The option is a: <code>boolean</code> type. Default: false Group: common
        Parameters:
        verbose - the value to set
        Returns:
        the dsl builder
      • lazyStartProducer

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder 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: <code>boolean</code> type. Default: false Group: producer
        Parameters:
        lazyStartProducer - the value to set
        Returns:
        the dsl builder
      • lazyStartProducer

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder 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 <code>boolean</code> type. Default: false Group: producer
        Parameters:
        lazyStartProducer - the value to set
        Returns:
        the dsl builder
      • replySubject

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder replySubject​(String replySubject)
        the subject to which subscribers should send response. The option is a: <code>java.lang.String</code> type. Group: producer
        Parameters:
        replySubject - the value to set
        Returns:
        the dsl builder
      • requestTimeout

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder requestTimeout​(long requestTimeout)
        Request timeout in milliseconds. The option is a: <code>long</code> type. Default: 20000 Group: producer
        Parameters:
        requestTimeout - the value to set
        Returns:
        the dsl builder
      • requestTimeout

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder requestTimeout​(String requestTimeout)
        Request timeout in milliseconds. The option will be converted to a <code>long</code> type. Default: 20000 Group: producer
        Parameters:
        requestTimeout - the value to set
        Returns:
        the dsl builder
      • secure

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder secure​(boolean secure)
        Set secure option indicating TLS is required. The option is a: <code>boolean</code> type. Default: false Group: security
        Parameters:
        secure - the value to set
        Returns:
        the dsl builder
      • secure

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder secure​(String secure)
        Set secure option indicating TLS is required. The option will be converted to a <code>boolean</code> type. Default: false Group: security
        Parameters:
        secure - the value to set
        Returns:
        the dsl builder
      • sslContextParameters

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder sslContextParameters​(Object sslContextParameters)
        To configure security using SSLContextParameters. The option is a: <code>org.apache.camel.support.jsse.SSLContextParameters</code> type. Group: security
        Parameters:
        sslContextParameters - the value to set
        Returns:
        the dsl builder
      • sslContextParameters

        default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder sslContextParameters​(String sslContextParameters)
        To configure security using SSLContextParameters. The option will be converted to a <code>org.apache.camel.support.jsse.SSLContextParameters</code> type. Group: security
        Parameters:
        sslContextParameters - the value to set
        Returns:
        the dsl builder