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 Details

    • advanced

    • 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

      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

      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

      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

      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

      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

      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

      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

      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
    • verbose

      Whether or not running in verbose mode. The option will be converted to a <code>boolean</code> type. Default: false Group: common
      Parameters:
      verbose - the value to set
      Returns:
      the dsl builder
    • 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

      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

      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(org.apache.camel.support.jsse.SSLContextParameters 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