The nats component allows you produce and consume messages from NATS.
Name | Kind | Group | Required | Default | Type | Enum | Description |
---|---|---|---|---|---|---|---|
servers | path | common | true | java.lang.String | URLs to one or more NAT servers. Use comma to separate URLs when specifying multiple servers. | ||
maxReconnectAttempts | parameter | common | 3 | int | Max reconnection attempts | ||
noRandomizeServers | parameter | common | false | boolean | Whether or not randomizing the order of servers for the connection attempts | ||
pedantic | parameter | common | false | boolean | Whether or not running in pedantic mode (this affects performace) | ||
pingInterval | parameter | common | 4000 | int | Ping interval to be aware if connection is still alive (in milliseconds) | ||
reconnect | parameter | common | true | boolean | Whether or not using reconnection feature | ||
reconnectTimeWait | parameter | common | 2000 | int | Waiting time before attempts reconnection (in milliseconds) | ||
ssl | parameter | common | false | boolean | Whether or not using SSL | ||
topic | parameter | common | true | java.lang.String | The name of topic we want to use | ||
verbose | parameter | common | false | boolean | Whether or not running in verbose mode | ||
bridgeErrorHandler | parameter | consumer | boolean | 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/ERROR level and ignored. | |||
maxMessages | parameter | consumer | java.lang.String | Stop receiving messages from a topic we are subscribing to after maxMessages | |||
poolSize | parameter | consumer | 10 | int | Consumer pool size | ||
queueName | parameter | consumer | java.lang.String | The Queue name if we are using nats for a queue configuration | |||
exceptionHandler | parameter | consumer (advanced) | org.apache.camel.spi.ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exchangePattern | parameter | consumer (advanced) | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the exchange pattern when the consumer creates an exchange. | ||
replySubject | parameter | producer | java.lang.String | the subject to which subscribers should send response | |||
synchronous | parameter | advanced | false | boolean | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |