Interface NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
NsqEndpointBuilderFactory.NsqEndpointBuilder
- Enclosing interface:
- NsqEndpointBuilderFactory
public static interface NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint consumers for the NSQ component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default NsqEndpointBuilderFactory.AdvancedNsqEndpointConsumerBuilder
advanced()
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
autoFinish(Boolean autoFinish)
Automatically finish the NSQ Message when it is retrieved from the queue and before the Exchange is processed.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
autoFinish(String autoFinish)
Automatically finish the NSQ Message when it is retrieved from the queue and before the Exchange is processed.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
bridgeErrorHandler(String bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
channel(String channel)
The NSQ channel.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
customNSQLookup(Object customNSQLookup)
A Custom NSQ lookup implementation.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
customNSQLookup(String customNSQLookup)
A Custom NSQ lookup implementation.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
lookupInterval(long lookupInterval)
The lookup interval.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
lookupInterval(String lookupInterval)
The lookup interval.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
lookupServerPort(int lookupServerPort)
The NSQ lookup server port.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
lookupServerPort(String lookupServerPort)
The NSQ lookup server port.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
messageTimeout(long messageTimeout)
The NSQ consumer timeout period for messages retrieved from the queue.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
messageTimeout(String messageTimeout)
The NSQ consumer timeout period for messages retrieved from the queue.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
poolSize(int poolSize)
Consumer pool size.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
poolSize(String poolSize)
Consumer pool size.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
requeueInterval(long requeueInterval)
The requeue interval in milliseconds.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
requeueInterval(String requeueInterval)
The requeue interval in milliseconds.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
secure(boolean secure)
Set secure option indicating TLS is required.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
secure(String secure)
Set secure option indicating TLS is required.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
servers(String servers)
The hostnames of one or more nsqlookupd servers (consumer) or nsqd servers (producer).default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
sslContextParameters(Object sslContextParameters)
To configure security using SSLContextParameters.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
sslContextParameters(String sslContextParameters)
To configure security using SSLContextParameters.default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder
userAgent(String userAgent)
A String to identify the kind of client.
-
-
-
Method Detail
-
advanced
default NsqEndpointBuilderFactory.AdvancedNsqEndpointConsumerBuilder advanced()
-
servers
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder servers(String servers)
The hostnames of one or more nsqlookupd servers (consumer) or nsqd servers (producer). The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
servers
- the value to set- Returns:
- the dsl builder
-
userAgent
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder userAgent(String userAgent)
A String to identify the kind of client. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
userAgent
- the value to set- Returns:
- the dsl builder
-
autoFinish
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder autoFinish(Boolean autoFinish)
Automatically finish the NSQ Message when it is retrieved from the queue and before the Exchange is processed. The option is a: <code>java.lang.Boolean</code> type. Default: true Group: consumer- Parameters:
autoFinish
- the value to set- Returns:
- the dsl builder
-
autoFinish
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder autoFinish(String autoFinish)
Automatically finish the NSQ Message when it is retrieved from the queue and before the Exchange is processed. The option will be converted to a <code>java.lang.Boolean</code> type. Default: true Group: consumer- Parameters:
autoFinish
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
channel
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder channel(String channel)
The NSQ channel. The option is a: <code>java.lang.String</code> type. Group: consumer- Parameters:
channel
- the value to set- Returns:
- the dsl builder
-
customNSQLookup
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder customNSQLookup(Object customNSQLookup)
A Custom NSQ lookup implementation. The option is a: <code>com.github.brainlag.nsq.lookup.NSQLookup</code> type. Group: consumer- Parameters:
customNSQLookup
- the value to set- Returns:
- the dsl builder
-
customNSQLookup
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder customNSQLookup(String customNSQLookup)
A Custom NSQ lookup implementation. The option will be converted to a <code>com.github.brainlag.nsq.lookup.NSQLookup</code> type. Group: consumer- Parameters:
customNSQLookup
- the value to set- Returns:
- the dsl builder
-
lookupInterval
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder lookupInterval(long lookupInterval)
The lookup interval. The option is a: <code>long</code> type. Default: 5000 Group: consumer- Parameters:
lookupInterval
- the value to set- Returns:
- the dsl builder
-
lookupInterval
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder lookupInterval(String lookupInterval)
The lookup interval. The option will be converted to a <code>long</code> type. Default: 5000 Group: consumer- Parameters:
lookupInterval
- the value to set- Returns:
- the dsl builder
-
lookupServerPort
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder lookupServerPort(int lookupServerPort)
The NSQ lookup server port. The option is a: <code>int</code> type. Default: 4161 Group: consumer- Parameters:
lookupServerPort
- the value to set- Returns:
- the dsl builder
-
lookupServerPort
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder lookupServerPort(String lookupServerPort)
The NSQ lookup server port. The option will be converted to a <code>int</code> type. Default: 4161 Group: consumer- Parameters:
lookupServerPort
- the value to set- Returns:
- the dsl builder
-
messageTimeout
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder messageTimeout(long messageTimeout)
The NSQ consumer timeout period for messages retrieved from the queue. A value of -1 is the server default. The option is a: <code>long</code> type. Default: -1 Group: consumer- Parameters:
messageTimeout
- the value to set- Returns:
- the dsl builder
-
messageTimeout
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder messageTimeout(String messageTimeout)
The NSQ consumer timeout period for messages retrieved from the queue. A value of -1 is the server default. The option will be converted to a <code>long</code> type. Default: -1 Group: consumer- Parameters:
messageTimeout
- the value to set- Returns:
- the dsl builder
-
poolSize
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder poolSize(int poolSize)
Consumer pool size. The option is a: <code>int</code> type. Default: 10 Group: consumer- Parameters:
poolSize
- the value to set- Returns:
- the dsl builder
-
poolSize
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder poolSize(String poolSize)
Consumer pool size. The option will be converted to a <code>int</code> type. Default: 10 Group: consumer- Parameters:
poolSize
- the value to set- Returns:
- the dsl builder
-
requeueInterval
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder requeueInterval(long requeueInterval)
The requeue interval in milliseconds. A value of -1 is the server default. The option is a: <code>long</code> type. Default: -1 Group: consumer- Parameters:
requeueInterval
- the value to set- Returns:
- the dsl builder
-
requeueInterval
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder requeueInterval(String requeueInterval)
The requeue interval in milliseconds. A value of -1 is the server default. The option will be converted to a <code>long</code> type. Default: -1 Group: consumer- Parameters:
requeueInterval
- the value to set- Returns:
- the dsl builder
-
secure
default NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder 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 NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder 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 NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder sslContextParameters(Object 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 NsqEndpointBuilderFactory.NsqEndpointConsumerBuilder 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
-
-