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.EndpointProducerBuilderBuilder for endpoint producers for the Nats component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilderadvanced()default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderconnectionTimeout(int connectionTimeout)Timeout for connection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderconnectionTimeout(String connectionTimeout)Timeout for connection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderflushConnection(boolean flushConnection)Define if we want to flush connection when stopping or not.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderflushConnection(String flushConnection)Define if we want to flush connection when stopping or not.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderflushTimeout(int flushTimeout)Set the flush timeout (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderflushTimeout(String flushTimeout)Set the flush timeout (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuildermaxPingsOut(int maxPingsOut)maximum number of pings have not received a response allowed by the client.default NatsEndpointBuilderFactory.NatsEndpointProducerBuildermaxPingsOut(String maxPingsOut)maximum number of pings have not received a response allowed by the client.default NatsEndpointBuilderFactory.NatsEndpointProducerBuildermaxReconnectAttempts(int maxReconnectAttempts)Max reconnection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuildermaxReconnectAttempts(String maxReconnectAttempts)Max reconnection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuildernoEcho(boolean noEcho)Turn off echo.default NatsEndpointBuilderFactory.NatsEndpointProducerBuildernoEcho(String noEcho)Turn off echo.default NatsEndpointBuilderFactory.NatsEndpointProducerBuildernoRandomizeServers(boolean noRandomizeServers)Whether or not randomizing the order of servers for the connection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuildernoRandomizeServers(String noRandomizeServers)Whether or not randomizing the order of servers for the connection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderpedantic(boolean pedantic)Whether or not running in pedantic mode (this affects performance).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderpedantic(String pedantic)Whether or not running in pedantic mode (this affects performance).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderpingInterval(int pingInterval)Ping interval to be aware if connection is still alive (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderpingInterval(String pingInterval)Ping interval to be aware if connection is still alive (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderreconnect(boolean reconnect)Whether or not using reconnection feature.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderreconnect(String reconnect)Whether or not using reconnection feature.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderreconnectTimeWait(int reconnectTimeWait)Waiting time before attempts reconnection (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderreconnectTimeWait(String reconnectTimeWait)Waiting time before attempts reconnection (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderreplySubject(String replySubject)the subject to which subscribers should send response.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderrequestCleanupInterval(int requestCleanupInterval)Interval to clean up cancelled/timed out requests.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderrequestCleanupInterval(String requestCleanupInterval)Interval to clean up cancelled/timed out requests.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderrequestTimeout(long requestTimeout)Request timeout in milliseconds.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderrequestTimeout(String requestTimeout)Request timeout in milliseconds.default NatsEndpointBuilderFactory.NatsEndpointProducerBuildersecure(boolean secure)Set secure option indicating TLS is required.default NatsEndpointBuilderFactory.NatsEndpointProducerBuildersecure(String secure)Set secure option indicating TLS is required.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderservers(String servers)URLs to one or more NAT servers.default NatsEndpointBuilderFactory.NatsEndpointProducerBuildersslContextParameters(String sslContextParameters)To configure security using SSLContextParameters.default NatsEndpointBuilderFactory.NatsEndpointProducerBuildersslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)To configure security using SSLContextParameters.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderverbose(boolean verbose)Whether or not running in verbose mode.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilderverbose(String verbose)Whether or not running in verbose mode.
-
-
-
Method Detail
-
advanced
default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder 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
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
-
verbose
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder verbose(String 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
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(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
-
-