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 Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default NatsEndpointBuilderFactory.AdvancedNatsEndpointProducerBuilder
advanced()
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
connectionTimeout(int connectionTimeout)
Timeout for connection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
connectionTimeout(String connectionTimeout)
Timeout for connection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
flushConnection(boolean flushConnection)
Define if we want to flush connection when stopping or not.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
flushConnection(String flushConnection)
Define if we want to flush connection when stopping or not.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
flushTimeout(int flushTimeout)
Set the flush timeout (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
flushTimeout(String flushTimeout)
Set the flush timeout (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
maxPingsOut(int maxPingsOut)
maximum number of pings have not received a response allowed by the client.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
maxPingsOut(String maxPingsOut)
maximum number of pings have not received a response allowed by the client.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
maxReconnectAttempts(int maxReconnectAttempts)
Max reconnection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
maxReconnectAttempts(String maxReconnectAttempts)
Max reconnection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
noEcho(boolean noEcho)
Turn off echo.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
noEcho(String noEcho)
Turn off echo.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
noRandomizeServers(boolean noRandomizeServers)
Whether or not randomizing the order of servers for the connection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
noRandomizeServers(String noRandomizeServers)
Whether or not randomizing the order of servers for the connection attempts.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
pedantic(boolean pedantic)
Whether or not running in pedantic mode (this affects performance).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
pedantic(String pedantic)
Whether or not running in pedantic mode (this affects performance).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
pingInterval(int pingInterval)
Ping interval to be aware if connection is still alive (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
pingInterval(String pingInterval)
Ping interval to be aware if connection is still alive (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
reconnect(boolean reconnect)
Whether or not using reconnection feature.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
reconnect(String reconnect)
Whether or not using reconnection feature.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
reconnectTimeWait(int reconnectTimeWait)
Waiting time before attempts reconnection (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
reconnectTimeWait(String reconnectTimeWait)
Waiting time before attempts reconnection (in milliseconds).default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
replySubject(String replySubject)
the subject to which subscribers should send response.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
requestCleanupInterval(int requestCleanupInterval)
Interval to clean up cancelled/timed out requests.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
requestCleanupInterval(String requestCleanupInterval)
Interval to clean up cancelled/timed out requests.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
secure(boolean secure)
Set secure option indicating TLS is required.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
secure(String secure)
Set secure option indicating TLS is required.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
servers(String servers)
URLs to one or more NAT servers.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
sslContextParameters(Object sslContextParameters)
To configure security using SSLContextParameters.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
sslContextParameters(String sslContextParameters)
To configure security using SSLContextParameters.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
verbose(boolean verbose)
Whether or not running in verbose mode.default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder
verbose(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:int
type. Default: 2000 Group: common
-
connectionTimeout
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder connectionTimeout(String connectionTimeout)
Timeout for connection attempts. (in milliseconds). The option will be converted to aint
type. Default: 2000 Group: common
-
flushConnection
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder flushConnection(boolean flushConnection)
Define if we want to flush connection when stopping or not. The option is a:boolean
type. Default: true Group: common
-
flushConnection
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder flushConnection(String flushConnection)
Define if we want to flush connection when stopping or not. The option will be converted to aboolean
type. Default: true Group: common
-
flushTimeout
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder flushTimeout(int flushTimeout)
Set the flush timeout (in milliseconds). The option is a:int
type. Default: 1000 Group: common
-
flushTimeout
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder flushTimeout(String flushTimeout)
Set the flush timeout (in milliseconds). The option will be converted to aint
type. Default: 1000 Group: common
-
maxPingsOut
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder maxPingsOut(int maxPingsOut)
maximum number of pings have not received a response allowed by the client. The option is a:int
type. Default: 2 Group: common
-
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 aint
type. Default: 2 Group: common
-
maxReconnectAttempts
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder maxReconnectAttempts(int maxReconnectAttempts)
Max reconnection attempts. The option is a:int
type. Default: 60 Group: common
-
maxReconnectAttempts
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder maxReconnectAttempts(String maxReconnectAttempts)
Max reconnection attempts. The option will be converted to aint
type. Default: 60 Group: common
-
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:boolean
type. Default: false Group: common
-
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 aboolean
type. Default: false Group: common
-
noRandomizeServers
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder noRandomizeServers(boolean noRandomizeServers)
Whether or not randomizing the order of servers for the connection attempts. The option is a:boolean
type. Default: false Group: common
-
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 aboolean
type. Default: false Group: common
-
pedantic
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder pedantic(boolean pedantic)
Whether or not running in pedantic mode (this affects performance). The option is a:boolean
type. Default: false Group: common
-
pedantic
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder pedantic(String pedantic)
Whether or not running in pedantic mode (this affects performance). The option will be converted to aboolean
type. Default: false Group: common
-
pingInterval
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder pingInterval(int pingInterval)
Ping interval to be aware if connection is still alive (in milliseconds). The option is a:int
type. Default: 120000 Group: common
-
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 aint
type. Default: 120000 Group: common
-
reconnect
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder reconnect(boolean reconnect)
Whether or not using reconnection feature. The option is a:boolean
type. Default: true Group: common
-
reconnect
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder reconnect(String reconnect)
Whether or not using reconnection feature. The option will be converted to aboolean
type. Default: true Group: common
-
reconnectTimeWait
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder reconnectTimeWait(int reconnectTimeWait)
Waiting time before attempts reconnection (in milliseconds). The option is a:int
type. Default: 2000 Group: common
-
reconnectTimeWait
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder reconnectTimeWait(String reconnectTimeWait)
Waiting time before attempts reconnection (in milliseconds). The option will be converted to aint
type. Default: 2000 Group: common
-
requestCleanupInterval
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder requestCleanupInterval(int requestCleanupInterval)
Interval to clean up cancelled/timed out requests. The option is a:int
type. Default: 5000 Group: common
-
requestCleanupInterval
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder requestCleanupInterval(String requestCleanupInterval)
Interval to clean up cancelled/timed out requests. The option will be converted to aint
type. Default: 5000 Group: common
-
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:java.lang.String
type. Group: common
-
verbose
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder verbose(boolean verbose)
Whether or not running in verbose mode. The option is a:boolean
type. Default: false Group: common
-
verbose
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder verbose(String verbose)
Whether or not running in verbose mode. The option will be converted to aboolean
type. Default: false Group: common
-
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:boolean
type. Default: false Group: producer
-
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 aboolean
type. Default: false Group: producer
-
replySubject
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder replySubject(String replySubject)
the subject to which subscribers should send response. The option is a:java.lang.String
type. Group: producer
-
secure
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder secure(boolean secure)
Set secure option indicating TLS is required. The option is a:boolean
type. Default: false Group: security
-
secure
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder secure(String secure)
Set secure option indicating TLS is required. The option will be converted to aboolean
type. Default: false Group: security
-
sslContextParameters
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder sslContextParameters(Object sslContextParameters)
To configure security using SSLContextParameters. The option is a:org.apache.camel.support.jsse.SSLContextParameters
type. Group: security
-
sslContextParameters
default NatsEndpointBuilderFactory.NatsEndpointProducerBuilder sslContextParameters(String sslContextParameters)
To configure security using SSLContextParameters. The option will be converted to aorg.apache.camel.support.jsse.SSLContextParameters
type. Group: security
-
-