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
Modifier and TypeMethodDescriptionadvanced()connectionTimeout(int connectionTimeout) Timeout for connection attempts.connectionTimeout(String connectionTimeout) Timeout for connection attempts.flushConnection(boolean flushConnection) Define if we want to flush connection when stopping or not.flushConnection(String flushConnection) Define if we want to flush connection when stopping or not.flushTimeout(int flushTimeout) Set the flush timeout (in milliseconds).flushTimeout(String flushTimeout) Set the flush timeout (in milliseconds).maxPingsOut(int maxPingsOut) maximum number of pings have not received a response allowed by the client.maxPingsOut(String maxPingsOut) maximum number of pings have not received a response allowed by the client.maxReconnectAttempts(int maxReconnectAttempts) Max reconnection attempts.maxReconnectAttempts(String maxReconnectAttempts) Max reconnection attempts.noEcho(boolean noEcho) Turn off echo.Turn off echo.noRandomizeServers(boolean noRandomizeServers) Whether or not randomizing the order of servers for the connection attempts.noRandomizeServers(String noRandomizeServers) Whether or not randomizing the order of servers for the connection attempts.pedantic(boolean pedantic) Whether or not running in pedantic mode (this affects performance).Whether or not running in pedantic mode (this affects performance).pingInterval(int pingInterval) Ping interval to be aware if connection is still alive (in milliseconds).pingInterval(String pingInterval) Ping interval to be aware if connection is still alive (in milliseconds).reconnect(boolean reconnect) Whether or not using reconnection feature.Whether or not using reconnection feature.reconnectTimeWait(int reconnectTimeWait) Waiting time before attempts reconnection (in milliseconds).reconnectTimeWait(String reconnectTimeWait) Waiting time before attempts reconnection (in milliseconds).requestCleanupInterval(int requestCleanupInterval) Interval to clean up cancelled/timed out requests.requestCleanupInterval(String requestCleanupInterval) Interval to clean up cancelled/timed out requests.secure(boolean secure) Set secure option indicating TLS is required.Set secure option indicating TLS is required.URLs to one or more NAT servers.sslContextParameters(String sslContextParameters) To configure security using SSLContextParameters.sslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) To configure security using SSLContextParameters.verbose(boolean verbose) Whether or not running in verbose mode.Whether or not running in verbose mode.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.endpoint.dsl.NatsEndpointBuilderFactory.NatsEndpointConsumerBuilder
maxMessages, poolSize, poolSize, queueName, replyToDisabled, replyToDisabledMethods inherited from interface org.apache.camel.builder.endpoint.dsl.NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
replySubject, requestTimeout, requestTimeout
-
Method Details
-
advanced
- Specified by:
advancedin interfaceNatsEndpointBuilderFactory.NatsEndpointConsumerBuilder- Specified by:
advancedin interfaceNatsEndpointBuilderFactory.NatsEndpointProducerBuilder
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-