Interface NatsEndpointBuilderFactory.NatsEndpointBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver,NatsEndpointBuilderFactory.NatsEndpointConsumerBuilder,NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
- Enclosing interface:
- NatsEndpointBuilderFactory
public static interface NatsEndpointBuilderFactory.NatsEndpointBuilder extends NatsEndpointBuilderFactory.NatsEndpointConsumerBuilder, NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
Builder for endpoint for the Nats component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilderadvanced()default NatsEndpointBuilderFactory.NatsEndpointBuilderconnectionTimeout(int connectionTimeout)Timeout for connection attempts.default NatsEndpointBuilderFactory.NatsEndpointBuilderconnectionTimeout(String connectionTimeout)Timeout for connection attempts.default NatsEndpointBuilderFactory.NatsEndpointBuilderflushConnection(boolean flushConnection)Define if we want to flush connection when stopping or not.default NatsEndpointBuilderFactory.NatsEndpointBuilderflushConnection(String flushConnection)Define if we want to flush connection when stopping or not.default NatsEndpointBuilderFactory.NatsEndpointBuilderflushTimeout(int flushTimeout)Set the flush timeout (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointBuilderflushTimeout(String flushTimeout)Set the flush timeout (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointBuildermaxPingsOut(int maxPingsOut)maximum number of pings have not received a response allowed by the client.default NatsEndpointBuilderFactory.NatsEndpointBuildermaxPingsOut(String maxPingsOut)maximum number of pings have not received a response allowed by the client.default NatsEndpointBuilderFactory.NatsEndpointBuildermaxReconnectAttempts(int maxReconnectAttempts)Max reconnection attempts.default NatsEndpointBuilderFactory.NatsEndpointBuildermaxReconnectAttempts(String maxReconnectAttempts)Max reconnection attempts.default NatsEndpointBuilderFactory.NatsEndpointBuildernoEcho(boolean noEcho)Turn off echo.default NatsEndpointBuilderFactory.NatsEndpointBuildernoEcho(String noEcho)Turn off echo.default NatsEndpointBuilderFactory.NatsEndpointBuildernoRandomizeServers(boolean noRandomizeServers)Whether or not randomizing the order of servers for the connection attempts.default NatsEndpointBuilderFactory.NatsEndpointBuildernoRandomizeServers(String noRandomizeServers)Whether or not randomizing the order of servers for the connection attempts.default NatsEndpointBuilderFactory.NatsEndpointBuilderpedantic(boolean pedantic)Whether or not running in pedantic mode (this affects performance).default NatsEndpointBuilderFactory.NatsEndpointBuilderpedantic(String pedantic)Whether or not running in pedantic mode (this affects performance).default NatsEndpointBuilderFactory.NatsEndpointBuilderpingInterval(int pingInterval)Ping interval to be aware if connection is still alive (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointBuilderpingInterval(String pingInterval)Ping interval to be aware if connection is still alive (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointBuilderreconnect(boolean reconnect)Whether or not using reconnection feature.default NatsEndpointBuilderFactory.NatsEndpointBuilderreconnect(String reconnect)Whether or not using reconnection feature.default NatsEndpointBuilderFactory.NatsEndpointBuilderreconnectTimeWait(int reconnectTimeWait)Waiting time before attempts reconnection (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointBuilderreconnectTimeWait(String reconnectTimeWait)Waiting time before attempts reconnection (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointBuilderrequestCleanupInterval(int requestCleanupInterval)Interval to clean up cancelled/timed out requests.default NatsEndpointBuilderFactory.NatsEndpointBuilderrequestCleanupInterval(String requestCleanupInterval)Interval to clean up cancelled/timed out requests.default NatsEndpointBuilderFactory.NatsEndpointBuildersecure(boolean secure)Set secure option indicating TLS is required.default NatsEndpointBuilderFactory.NatsEndpointBuildersecure(String secure)Set secure option indicating TLS is required.default NatsEndpointBuilderFactory.NatsEndpointBuilderservers(String servers)URLs to one or more NAT servers.default NatsEndpointBuilderFactory.NatsEndpointBuildersslContextParameters(String sslContextParameters)To configure security using SSLContextParameters.default NatsEndpointBuilderFactory.NatsEndpointBuildersslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)To configure security using SSLContextParameters.default NatsEndpointBuilderFactory.NatsEndpointBuilderverbose(boolean verbose)Whether or not running in verbose mode.default NatsEndpointBuilderFactory.NatsEndpointBuilderverbose(String verbose)Whether or not running in verbose mode.-
Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
-
Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.NatsEndpointBuilderFactory.NatsEndpointConsumerBuilder
maxMessages, poolSize, poolSize, queueName, replyToDisabled, replyToDisabled
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
replySubject, requestTimeout, requestTimeout
-
-
-
-
Method Detail
-
advanced
default NatsEndpointBuilderFactory.AdvancedNatsEndpointBuilder advanced()
- Specified by:
advancedin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
advancedin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder
-
connectionTimeout
default NatsEndpointBuilderFactory.NatsEndpointBuilder connectionTimeout(int connectionTimeout)
Timeout for connection attempts. (in milliseconds). The option is a: <code>int</code> type. Default: 2000 Group: common- Specified by:
connectionTimeoutin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
connectionTimeoutin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
connectionTimeout- the value to set- Returns:
- the dsl builder
-
connectionTimeout
default NatsEndpointBuilderFactory.NatsEndpointBuilder connectionTimeout(String connectionTimeout)
Timeout for connection attempts. (in milliseconds). The option will be converted to a <code>int</code> type. Default: 2000 Group: common- Specified by:
connectionTimeoutin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
connectionTimeoutin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
connectionTimeout- the value to set- Returns:
- the dsl builder
-
flushConnection
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
flushConnectionin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
flushConnectionin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
flushConnection- the value to set- Returns:
- the dsl builder
-
flushConnection
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
flushConnectionin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
flushConnectionin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
flushConnection- the value to set- Returns:
- the dsl builder
-
flushTimeout
default NatsEndpointBuilderFactory.NatsEndpointBuilder flushTimeout(int flushTimeout)
Set the flush timeout (in milliseconds). The option is a: <code>int</code> type. Default: 1000 Group: common- Specified by:
flushTimeoutin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
flushTimeoutin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
flushTimeout- the value to set- Returns:
- the dsl builder
-
flushTimeout
default NatsEndpointBuilderFactory.NatsEndpointBuilder flushTimeout(String flushTimeout)
Set the flush timeout (in milliseconds). The option will be converted to a <code>int</code> type. Default: 1000 Group: common- Specified by:
flushTimeoutin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
flushTimeoutin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
flushTimeout- the value to set- Returns:
- the dsl builder
-
maxPingsOut
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
maxPingsOutin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
maxPingsOutin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
maxPingsOut- the value to set- Returns:
- the dsl builder
-
maxPingsOut
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
maxPingsOutin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
maxPingsOutin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
maxPingsOut- the value to set- Returns:
- the dsl builder
-
maxReconnectAttempts
default NatsEndpointBuilderFactory.NatsEndpointBuilder maxReconnectAttempts(int maxReconnectAttempts)
Max reconnection attempts. The option is a: <code>int</code> type. Default: 60 Group: common- Specified by:
maxReconnectAttemptsin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
maxReconnectAttemptsin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
maxReconnectAttempts- the value to set- Returns:
- the dsl builder
-
maxReconnectAttempts
default NatsEndpointBuilderFactory.NatsEndpointBuilder maxReconnectAttempts(String maxReconnectAttempts)
Max reconnection attempts. The option will be converted to a <code>int</code> type. Default: 60 Group: common- Specified by:
maxReconnectAttemptsin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
maxReconnectAttemptsin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
maxReconnectAttempts- the value to set- Returns:
- the dsl builder
-
noEcho
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
noEchoin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
noEchoin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
noEcho- the value to set- Returns:
- the dsl builder
-
noEcho
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
noEchoin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
noEchoin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
noEcho- the value to set- Returns:
- the dsl builder
-
noRandomizeServers
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
noRandomizeServersin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
noRandomizeServersin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
noRandomizeServers- the value to set- Returns:
- the dsl builder
-
noRandomizeServers
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
noRandomizeServersin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
noRandomizeServersin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
noRandomizeServers- the value to set- Returns:
- the dsl builder
-
pedantic
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
pedanticin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
pedanticin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
pedantic- the value to set- Returns:
- the dsl builder
-
pedantic
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
pedanticin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
pedanticin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
pedantic- the value to set- Returns:
- the dsl builder
-
pingInterval
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
pingIntervalin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
pingIntervalin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
pingInterval- the value to set- Returns:
- the dsl builder
-
pingInterval
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
pingIntervalin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
pingIntervalin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
pingInterval- the value to set- Returns:
- the dsl builder
-
reconnect
default NatsEndpointBuilderFactory.NatsEndpointBuilder reconnect(boolean reconnect)
Whether or not using reconnection feature. The option is a: <code>boolean</code> type. Default: true Group: common- Specified by:
reconnectin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
reconnectin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
reconnect- the value to set- Returns:
- the dsl builder
-
reconnect
default NatsEndpointBuilderFactory.NatsEndpointBuilder reconnect(String reconnect)
Whether or not using reconnection feature. The option will be converted to a <code>boolean</code> type. Default: true Group: common- Specified by:
reconnectin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
reconnectin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
reconnect- the value to set- Returns:
- the dsl builder
-
reconnectTimeWait
default NatsEndpointBuilderFactory.NatsEndpointBuilder reconnectTimeWait(int reconnectTimeWait)
Waiting time before attempts reconnection (in milliseconds). The option is a: <code>int</code> type. Default: 2000 Group: common- Specified by:
reconnectTimeWaitin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
reconnectTimeWaitin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
reconnectTimeWait- the value to set- Returns:
- the dsl builder
-
reconnectTimeWait
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
reconnectTimeWaitin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
reconnectTimeWaitin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
reconnectTimeWait- the value to set- Returns:
- the dsl builder
-
requestCleanupInterval
default NatsEndpointBuilderFactory.NatsEndpointBuilder requestCleanupInterval(int requestCleanupInterval)
Interval to clean up cancelled/timed out requests. The option is a: <code>int</code> type. Default: 5000 Group: common- Specified by:
requestCleanupIntervalin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
requestCleanupIntervalin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
requestCleanupInterval- the value to set- Returns:
- the dsl builder
-
requestCleanupInterval
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
requestCleanupIntervalin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
requestCleanupIntervalin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
requestCleanupInterval- the value to set- Returns:
- the dsl builder
-
servers
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
serversin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
serversin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
servers- the value to set- Returns:
- the dsl builder
-
verbose
default NatsEndpointBuilderFactory.NatsEndpointBuilder verbose(boolean verbose)
Whether or not running in verbose mode. The option is a: <code>boolean</code> type. Default: false Group: common- Specified by:
verbosein interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
verbosein interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
verbose- the value to set- Returns:
- the dsl builder
-
verbose
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
verbosein interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
verbosein interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
verbose- the value to set- Returns:
- the dsl builder
-
secure
default NatsEndpointBuilderFactory.NatsEndpointBuilder secure(boolean secure)
Set secure option indicating TLS is required. The option is a: <code>boolean</code> type. Default: false Group: security- Specified by:
securein interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
securein interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
secure- the value to set- Returns:
- the dsl builder
-
secure
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
securein interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
securein interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
secure- the value to set- Returns:
- the dsl builder
-
sslContextParameters
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
sslContextParametersin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
sslContextParametersin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
sslContextParameters- the value to set- Returns:
- the dsl builder
-
sslContextParameters
default NatsEndpointBuilderFactory.NatsEndpointBuilder 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- Specified by:
sslContextParametersin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
sslContextParametersin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder- Parameters:
sslContextParameters- the value to set- Returns:
- the dsl builder
-
-