Interface MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointBuilder
- Enclosing interface:
MongoDbEndpointBuilderFactory
public static interface MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
extends org.apache.camel.builder.EndpointConsumerBuilder
Advanced builder for endpoint consumers for the MongoDB component.
-
Method Summary
Modifier and TypeMethodDescriptionSets the logical name of the application.basic()
bridgeErrorHandler
(boolean bridgeErrorHandler) Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.bridgeErrorHandler
(String bridgeErrorHandler) Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.compressors
(String compressors) Specifies one or more compression algorithms that the driver will attempt to use to compress requests sent to the connected MongoDB instance.connectTimeoutMS
(Integer connectTimeoutMS) Specifies the maximum amount of time, in milliseconds, the Java driver waits for a connection to open before timing out.connectTimeoutMS
(String connectTimeoutMS) Specifies the maximum amount of time, in milliseconds, the Java driver waits for a connection to open before timing out.cursorRegenerationDelay
(long cursorRegenerationDelay) MongoDB tailable cursors will block until new data arrives.cursorRegenerationDelay
(String cursorRegenerationDelay) MongoDB tailable cursors will block until new data arrives.directConnection
(boolean directConnection) Specifies that the driver must connect to the host directly.directConnection
(String directConnection) Specifies that the driver must connect to the host directly.dynamicity
(boolean dynamicity) Sets whether this endpoint will attempt to dynamically resolve the target database and collection from the incoming Exchange properties.dynamicity
(String dynamicity) Sets whether this endpoint will attempt to dynamically resolve the target database and collection from the incoming Exchange properties.exceptionHandler
(String exceptionHandler) To let the consumer use a custom ExceptionHandler.exceptionHandler
(org.apache.camel.spi.ExceptionHandler exceptionHandler) To let the consumer use a custom ExceptionHandler.exchangePattern
(String exchangePattern) Sets the exchange pattern when the consumer creates an exchange.exchangePattern
(org.apache.camel.ExchangePattern exchangePattern) Sets the exchange pattern when the consumer creates an exchange.heartbeatFrequencyMS
(Integer heartbeatFrequencyMS) heartbeatFrequencyMS controls when the driver checks the state of the MongoDB deployment.heartbeatFrequencyMS
(String heartbeatFrequencyMS) heartbeatFrequencyMS controls when the driver checks the state of the MongoDB deployment.loadBalanced
(boolean loadBalanced) If true the driver will assume that it's connecting to MongoDB through a load balancer.loadBalanced
(String loadBalanced) If true the driver will assume that it's connecting to MongoDB through a load balancer.localThresholdMS
(Integer localThresholdMS) The size (in milliseconds) of the latency window for selecting among multiple suitable MongoDB instances.localThresholdMS
(String localThresholdMS) The size (in milliseconds) of the latency window for selecting among multiple suitable MongoDB instances.maxConnecting
(Integer maxConnecting) Specifies the maximum number of connections a pool may be establishing concurrently.maxConnecting
(String maxConnecting) Specifies the maximum number of connections a pool may be establishing concurrently.maxIdleTimeMS
(Integer maxIdleTimeMS) Specifies the maximum amount of time, in milliseconds, the Java driver will allow a pooled connection to idle before closing the connection.maxIdleTimeMS
(String maxIdleTimeMS) Specifies the maximum amount of time, in milliseconds, the Java driver will allow a pooled connection to idle before closing the connection.maxLifeTimeMS
(Integer maxLifeTimeMS) Specifies the maximum amount of time, in milliseconds, the Java driver will continue to use a pooled connection before closing the connection.maxLifeTimeMS
(String maxLifeTimeMS) Specifies the maximum amount of time, in milliseconds, the Java driver will continue to use a pooled connection before closing the connection.maxPoolSize
(Integer maxPoolSize) The maximum number of connections in the connection pool.maxPoolSize
(String maxPoolSize) The maximum number of connections in the connection pool.maxStalenessSeconds
(Integer maxStalenessSeconds) Specifies, in seconds, how stale a secondary can be before the driver stops communicating with that secondary.maxStalenessSeconds
(String maxStalenessSeconds) Specifies, in seconds, how stale a secondary can be before the driver stops communicating with that secondary.minPoolSize
(Integer minPoolSize) Specifies the minimum number of connections that must exist at any moment in a single connection pool.minPoolSize
(String minPoolSize) Specifies the minimum number of connections that must exist at any moment in a single connection pool.readPreference
(String readPreference) Configure how MongoDB clients route read operations to the members of a replica set.readPreferenceTags
(String readPreferenceTags) A representation of a tag set as a comma-separated list of colon-separated key-value pairs, e.g. dc:ny,rack:1.replicaSet
(String replicaSet) Specifies that the connection string provided includes multiple hosts.retryReads
(boolean retryReads) Specifies that the driver must retry supported read operations if they fail due to a network error.retryReads
(String retryReads) Specifies that the driver must retry supported read operations if they fail due to a network error.retryWrites
(boolean retryWrites) Specifies that the driver must retry supported write operations if they fail due to a network error.retryWrites
(String retryWrites) Specifies that the driver must retry supported write operations if they fail due to a network error.serverSelectionTimeoutMS
(Integer serverSelectionTimeoutMS) Specifies how long (in milliseconds) to block for server selection before throwing an exception.serverSelectionTimeoutMS
(String serverSelectionTimeoutMS) Specifies how long (in milliseconds) to block for server selection before throwing an exception.socketTimeoutMS
(Integer socketTimeoutMS) Specifies the maximum amount of time, in milliseconds, the Java driver will wait to send or receive a request before timing out.socketTimeoutMS
(String socketTimeoutMS) Specifies the maximum amount of time, in milliseconds, the Java driver will wait to send or receive a request before timing out.srvMaxHosts
(Integer srvMaxHosts) The maximum number of hosts from the SRV record to connect to.srvMaxHosts
(String srvMaxHosts) The maximum number of hosts from the SRV record to connect to.srvServiceName
(String srvServiceName) Specifies the service name of the SRV resource recordsthe driver retrieves to construct your seed list.tls
(boolean tls) Specifies that all communication with MongoDB instances should use TLS.Specifies that all communication with MongoDB instances should use TLS.tlsAllowInvalidHostnames
(boolean tlsAllowInvalidHostnames) Specifies that the driver should allow invalid hostnames in the certificate for TLS connections.tlsAllowInvalidHostnames
(String tlsAllowInvalidHostnames) Specifies that the driver should allow invalid hostnames in the certificate for TLS connections.waitQueueTimeoutMS
(Integer waitQueueTimeoutMS) Specifies the maximum amount of time, in milliseconds that a thread may wait for a connection to become available.waitQueueTimeoutMS
(String waitQueueTimeoutMS) Specifies the maximum amount of time, in milliseconds that a thread may wait for a connection to become available.writeConcern
(String writeConcern) Configure the connection bean with the level of acknowledgment requested from MongoDB for write operations to a standalone mongod, replicaset or cluster.writeResultAsHeader
(boolean writeResultAsHeader) In write operations, it determines whether instead of returning WriteResult as the body of the OUT message, we transfer the IN message to the OUT and attach the WriteResult as a header.writeResultAsHeader
(String writeResultAsHeader) In write operations, it determines whether instead of returning WriteResult as the body of the OUT message, we transfer the IN message to the OUT and attach the WriteResult as a header.zlibCompressionLevel
(Integer zlibCompressionLevel) Specifies the degree of compression that Zlib should use to decrease the size of requests to the connected MongoDB instance.zlibCompressionLevel
(String zlibCompressionLevel) Specifies the degree of compression that Zlib should use to decrease the size of requests to the connected MongoDB instance.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolve
-
Method Details
-
basic
-
bridgeErrorHandler
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler) Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. 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:boolean
type. Default: false Group: consumer (advanced)- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler) Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. 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 aboolean
type. Default: false Group: consumer (advanced)- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
exceptionHandler
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler) To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a:org.apache.camel.spi.ExceptionHandler
type. Group: consumer (advanced)- Parameters:
exceptionHandler
- the value to set- Returns:
- the dsl builder
-
exceptionHandler
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder exceptionHandler(String exceptionHandler) To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to aorg.apache.camel.spi.ExceptionHandler
type. Group: consumer (advanced)- Parameters:
exceptionHandler
- the value to set- Returns:
- the dsl builder
-
exchangePattern
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder exchangePattern(org.apache.camel.ExchangePattern exchangePattern) Sets the exchange pattern when the consumer creates an exchange. The option is a:org.apache.camel.ExchangePattern
type. Group: consumer (advanced)- Parameters:
exchangePattern
- the value to set- Returns:
- the dsl builder
-
exchangePattern
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder exchangePattern(String exchangePattern) Sets the exchange pattern when the consumer creates an exchange. The option will be converted to aorg.apache.camel.ExchangePattern
type. Group: consumer (advanced)- Parameters:
exchangePattern
- the value to set- Returns:
- the dsl builder
-
appName
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder appName(String appName) Sets the logical name of the application. The application name may be used by the client to identify the application to the server, for use in server logs, slow query logs, and profile collection. Default: null. The option is a:java.lang.String
type. Group: advanced- Parameters:
appName
- the value to set- Returns:
- the dsl builder
-
compressors
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder compressors(String compressors) Specifies one or more compression algorithms that the driver will attempt to use to compress requests sent to the connected MongoDB instance. Possible values include: zlib, snappy, and zstd. Default: null. The option is a:java.lang.String
type. Group: advanced- Parameters:
compressors
- the value to set- Returns:
- the dsl builder
-
connectTimeoutMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder connectTimeoutMS(Integer connectTimeoutMS) Specifies the maximum amount of time, in milliseconds, the Java driver waits for a connection to open before timing out. A value of 0 instructs the driver to never time out while waiting for a connection to open. Default: 10000 (10 seconds). The option is a:java.lang.Integer
type. Default: 10000 Group: advanced- Parameters:
connectTimeoutMS
- the value to set- Returns:
- the dsl builder
-
connectTimeoutMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder connectTimeoutMS(String connectTimeoutMS) Specifies the maximum amount of time, in milliseconds, the Java driver waits for a connection to open before timing out. A value of 0 instructs the driver to never time out while waiting for a connection to open. Default: 10000 (10 seconds). The option will be converted to ajava.lang.Integer
type. Default: 10000 Group: advanced- Parameters:
connectTimeoutMS
- the value to set- Returns:
- the dsl builder
-
cursorRegenerationDelay
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder cursorRegenerationDelay(long cursorRegenerationDelay) MongoDB tailable cursors will block until new data arrives. If no new data is inserted, after some time the cursor will be automatically freed and closed by the MongoDB server. The client is expected to regenerate the cursor if needed. This value specifies the time to wait before attempting to fetch a new cursor, and if the attempt fails, how long before the next attempt is made. Default value is 1000ms. The option is a:long
type. Default: 1000 Group: advanced- Parameters:
cursorRegenerationDelay
- the value to set- Returns:
- the dsl builder
-
cursorRegenerationDelay
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder cursorRegenerationDelay(String cursorRegenerationDelay) MongoDB tailable cursors will block until new data arrives. If no new data is inserted, after some time the cursor will be automatically freed and closed by the MongoDB server. The client is expected to regenerate the cursor if needed. This value specifies the time to wait before attempting to fetch a new cursor, and if the attempt fails, how long before the next attempt is made. Default value is 1000ms. The option will be converted to along
type. Default: 1000 Group: advanced- Parameters:
cursorRegenerationDelay
- the value to set- Returns:
- the dsl builder
-
directConnection
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder directConnection(boolean directConnection) Specifies that the driver must connect to the host directly. Default: false. The option is a:boolean
type. Default: false Group: advanced- Parameters:
directConnection
- the value to set- Returns:
- the dsl builder
-
directConnection
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder directConnection(String directConnection) Specifies that the driver must connect to the host directly. Default: false. The option will be converted to aboolean
type. Default: false Group: advanced- Parameters:
directConnection
- the value to set- Returns:
- the dsl builder
-
dynamicity
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder dynamicity(boolean dynamicity) Sets whether this endpoint will attempt to dynamically resolve the target database and collection from the incoming Exchange properties. Can be used to override at runtime the database and collection specified on the otherwise static endpoint URI. It is disabled by default to boost performance. Enabling it will take a minimal performance hit. The option is a:boolean
type. Default: false Group: advanced- Parameters:
dynamicity
- the value to set- Returns:
- the dsl builder
-
dynamicity
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder dynamicity(String dynamicity) Sets whether this endpoint will attempt to dynamically resolve the target database and collection from the incoming Exchange properties. Can be used to override at runtime the database and collection specified on the otherwise static endpoint URI. It is disabled by default to boost performance. Enabling it will take a minimal performance hit. The option will be converted to aboolean
type. Default: false Group: advanced- Parameters:
dynamicity
- the value to set- Returns:
- the dsl builder
-
heartbeatFrequencyMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder heartbeatFrequencyMS(Integer heartbeatFrequencyMS) heartbeatFrequencyMS controls when the driver checks the state of the MongoDB deployment. Specify the interval (in milliseconds) between checks, counted from the end of the previous check until the beginning of the next one. Default: Single-threaded drivers: 60 seconds. Multithreaded drivers: 10 seconds. The option is a:java.lang.Integer
type. Group: advanced- Parameters:
heartbeatFrequencyMS
- the value to set- Returns:
- the dsl builder
-
heartbeatFrequencyMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder heartbeatFrequencyMS(String heartbeatFrequencyMS) heartbeatFrequencyMS controls when the driver checks the state of the MongoDB deployment. Specify the interval (in milliseconds) between checks, counted from the end of the previous check until the beginning of the next one. Default: Single-threaded drivers: 60 seconds. Multithreaded drivers: 10 seconds. The option will be converted to ajava.lang.Integer
type. Group: advanced- Parameters:
heartbeatFrequencyMS
- the value to set- Returns:
- the dsl builder
-
loadBalanced
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder loadBalanced(boolean loadBalanced) If true the driver will assume that it's connecting to MongoDB through a load balancer. The option is a:boolean
type. Default: false Group: advanced- Parameters:
loadBalanced
- the value to set- Returns:
- the dsl builder
-
loadBalanced
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder loadBalanced(String loadBalanced) If true the driver will assume that it's connecting to MongoDB through a load balancer. The option will be converted to aboolean
type. Default: false Group: advanced- Parameters:
loadBalanced
- the value to set- Returns:
- the dsl builder
-
localThresholdMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder localThresholdMS(Integer localThresholdMS) The size (in milliseconds) of the latency window for selecting among multiple suitable MongoDB instances. Default: 15 milliseconds. The option is a:java.lang.Integer
type. Default: 15 Group: advanced- Parameters:
localThresholdMS
- the value to set- Returns:
- the dsl builder
-
localThresholdMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder localThresholdMS(String localThresholdMS) The size (in milliseconds) of the latency window for selecting among multiple suitable MongoDB instances. Default: 15 milliseconds. The option will be converted to ajava.lang.Integer
type. Default: 15 Group: advanced- Parameters:
localThresholdMS
- the value to set- Returns:
- the dsl builder
-
maxConnecting
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder maxConnecting(Integer maxConnecting) Specifies the maximum number of connections a pool may be establishing concurrently. Default: 2. The option is a:java.lang.Integer
type. Default: 2 Group: advanced- Parameters:
maxConnecting
- the value to set- Returns:
- the dsl builder
-
maxConnecting
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder maxConnecting(String maxConnecting) Specifies the maximum number of connections a pool may be establishing concurrently. Default: 2. The option will be converted to ajava.lang.Integer
type. Default: 2 Group: advanced- Parameters:
maxConnecting
- the value to set- Returns:
- the dsl builder
-
maxIdleTimeMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder maxIdleTimeMS(Integer maxIdleTimeMS) Specifies the maximum amount of time, in milliseconds, the Java driver will allow a pooled connection to idle before closing the connection. A value of 0 indicates that there is no upper bound on how long the driver can allow a pooled collection to be idle. Default: 0. The option is a:java.lang.Integer
type. Default: 0 Group: advanced- Parameters:
maxIdleTimeMS
- the value to set- Returns:
- the dsl builder
-
maxIdleTimeMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder maxIdleTimeMS(String maxIdleTimeMS) Specifies the maximum amount of time, in milliseconds, the Java driver will allow a pooled connection to idle before closing the connection. A value of 0 indicates that there is no upper bound on how long the driver can allow a pooled collection to be idle. Default: 0. The option will be converted to ajava.lang.Integer
type. Default: 0 Group: advanced- Parameters:
maxIdleTimeMS
- the value to set- Returns:
- the dsl builder
-
maxLifeTimeMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder maxLifeTimeMS(Integer maxLifeTimeMS) Specifies the maximum amount of time, in milliseconds, the Java driver will continue to use a pooled connection before closing the connection. A value of 0 indicates that there is no upper bound on how long the driver can keep a pooled connection open. Default: 0. The option is a:java.lang.Integer
type. Default: 0 Group: advanced- Parameters:
maxLifeTimeMS
- the value to set- Returns:
- the dsl builder
-
maxLifeTimeMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder maxLifeTimeMS(String maxLifeTimeMS) Specifies the maximum amount of time, in milliseconds, the Java driver will continue to use a pooled connection before closing the connection. A value of 0 indicates that there is no upper bound on how long the driver can keep a pooled connection open. Default: 0. The option will be converted to ajava.lang.Integer
type. Default: 0 Group: advanced- Parameters:
maxLifeTimeMS
- the value to set- Returns:
- the dsl builder
-
maxPoolSize
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder maxPoolSize(Integer maxPoolSize) The maximum number of connections in the connection pool. The default value is 100. The option is a:java.lang.Integer
type. Default: 100 Group: advanced- Parameters:
maxPoolSize
- the value to set- Returns:
- the dsl builder
-
maxPoolSize
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder maxPoolSize(String maxPoolSize) The maximum number of connections in the connection pool. The default value is 100. The option will be converted to ajava.lang.Integer
type. Default: 100 Group: advanced- Parameters:
maxPoolSize
- the value to set- Returns:
- the dsl builder
-
maxStalenessSeconds
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder maxStalenessSeconds(Integer maxStalenessSeconds) Specifies, in seconds, how stale a secondary can be before the driver stops communicating with that secondary. The minimum value is either 90 seconds or the heartbeat frequency plus 10 seconds, whichever is greater. For more information, see the server documentation for the maxStalenessSeconds option. Not providing a parameter or explicitly specifying -1 indicates that there should be no staleness check for secondaries. Default: -1. The option is a:java.lang.Integer
type. Default: -1 Group: advanced- Parameters:
maxStalenessSeconds
- the value to set- Returns:
- the dsl builder
-
maxStalenessSeconds
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder maxStalenessSeconds(String maxStalenessSeconds) Specifies, in seconds, how stale a secondary can be before the driver stops communicating with that secondary. The minimum value is either 90 seconds or the heartbeat frequency plus 10 seconds, whichever is greater. For more information, see the server documentation for the maxStalenessSeconds option. Not providing a parameter or explicitly specifying -1 indicates that there should be no staleness check for secondaries. Default: -1. The option will be converted to ajava.lang.Integer
type. Default: -1 Group: advanced- Parameters:
maxStalenessSeconds
- the value to set- Returns:
- the dsl builder
-
minPoolSize
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder minPoolSize(Integer minPoolSize) Specifies the minimum number of connections that must exist at any moment in a single connection pool. Default: 0. The option is a:java.lang.Integer
type. Default: 0 Group: advanced- Parameters:
minPoolSize
- the value to set- Returns:
- the dsl builder
-
minPoolSize
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder minPoolSize(String minPoolSize) Specifies the minimum number of connections that must exist at any moment in a single connection pool. Default: 0. The option will be converted to ajava.lang.Integer
type. Default: 0 Group: advanced- Parameters:
minPoolSize
- the value to set- Returns:
- the dsl builder
-
readPreference
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder readPreference(String readPreference) Configure how MongoDB clients route read operations to the members of a replica set. Possible values are PRIMARY, PRIMARY_PREFERRED, SECONDARY, SECONDARY_PREFERRED or NEAREST. The option is a:java.lang.String
type. Default: PRIMARY Group: advanced- Parameters:
readPreference
- the value to set- Returns:
- the dsl builder
-
readPreferenceTags
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder readPreferenceTags(String readPreferenceTags) A representation of a tag set as a comma-separated list of colon-separated key-value pairs, e.g. dc:ny,rack:1. Spaces are stripped from the beginning and end of all keys and values. To specify a list of tag sets, using multiple readPreferenceTags, e.g., readPreferenceTags=dc:ny,rack:1;readPreferenceTags=dc:ny;readPreferenceTags= Note the empty value for the last one, which means match any secondary as a last resort. Order matters when using multiple readPreferenceTags. The option is a:java.lang.String
type. Group: advanced- Parameters:
readPreferenceTags
- the value to set- Returns:
- the dsl builder
-
replicaSet
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder replicaSet(String replicaSet) Specifies that the connection string provided includes multiple hosts. When specified, the driver attempts to find all members of that set. The option is a:java.lang.String
type. Group: advanced- Parameters:
replicaSet
- the value to set- Returns:
- the dsl builder
-
retryReads
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder retryReads(boolean retryReads) Specifies that the driver must retry supported read operations if they fail due to a network error. Default: true. The option is a:boolean
type. Default: true Group: advanced- Parameters:
retryReads
- the value to set- Returns:
- the dsl builder
-
retryReads
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder retryReads(String retryReads) Specifies that the driver must retry supported read operations if they fail due to a network error. Default: true. The option will be converted to aboolean
type. Default: true Group: advanced- Parameters:
retryReads
- the value to set- Returns:
- the dsl builder
-
retryWrites
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder retryWrites(boolean retryWrites) Specifies that the driver must retry supported write operations if they fail due to a network error. Default: true. The option is a:boolean
type. Default: true Group: advanced- Parameters:
retryWrites
- the value to set- Returns:
- the dsl builder
-
retryWrites
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder retryWrites(String retryWrites) Specifies that the driver must retry supported write operations if they fail due to a network error. Default: true. The option will be converted to aboolean
type. Default: true Group: advanced- Parameters:
retryWrites
- the value to set- Returns:
- the dsl builder
-
serverSelectionTimeoutMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder serverSelectionTimeoutMS(Integer serverSelectionTimeoutMS) Specifies how long (in milliseconds) to block for server selection before throwing an exception. Default: 30,000 milliseconds. The option is a:java.lang.Integer
type. Default: 30000 Group: advanced- Parameters:
serverSelectionTimeoutMS
- the value to set- Returns:
- the dsl builder
-
serverSelectionTimeoutMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder serverSelectionTimeoutMS(String serverSelectionTimeoutMS) Specifies how long (in milliseconds) to block for server selection before throwing an exception. Default: 30,000 milliseconds. The option will be converted to ajava.lang.Integer
type. Default: 30000 Group: advanced- Parameters:
serverSelectionTimeoutMS
- the value to set- Returns:
- the dsl builder
-
socketTimeoutMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder socketTimeoutMS(Integer socketTimeoutMS) Specifies the maximum amount of time, in milliseconds, the Java driver will wait to send or receive a request before timing out. A value of 0 instructs the driver to never time out while waiting to send or receive a request. Default: 0. The option is a:java.lang.Integer
type. Default: 0 Group: advanced- Parameters:
socketTimeoutMS
- the value to set- Returns:
- the dsl builder
-
socketTimeoutMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder socketTimeoutMS(String socketTimeoutMS) Specifies the maximum amount of time, in milliseconds, the Java driver will wait to send or receive a request before timing out. A value of 0 instructs the driver to never time out while waiting to send or receive a request. Default: 0. The option will be converted to ajava.lang.Integer
type. Default: 0 Group: advanced- Parameters:
socketTimeoutMS
- the value to set- Returns:
- the dsl builder
-
srvMaxHosts
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder srvMaxHosts(Integer srvMaxHosts) The maximum number of hosts from the SRV record to connect to. The option is a:java.lang.Integer
type. Group: advanced- Parameters:
srvMaxHosts
- the value to set- Returns:
- the dsl builder
-
srvMaxHosts
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder srvMaxHosts(String srvMaxHosts) The maximum number of hosts from the SRV record to connect to. The option will be converted to ajava.lang.Integer
type. Group: advanced- Parameters:
srvMaxHosts
- the value to set- Returns:
- the dsl builder
-
srvServiceName
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder srvServiceName(String srvServiceName) Specifies the service name of the SRV resource recordsthe driver retrieves to construct your seed list. You must use the DNS Seed List Connection Format in your connection URI to use this option. Default: mongodb. The option is a:java.lang.String
type. Default: mongodb Group: advanced- Parameters:
srvServiceName
- the value to set- Returns:
- the dsl builder
-
tls
Specifies that all communication with MongoDB instances should use TLS. Supersedes the ssl option. Default: false. The option is a:boolean
type. Default: false Group: advanced- Parameters:
tls
- the value to set- Returns:
- the dsl builder
-
tls
Specifies that all communication with MongoDB instances should use TLS. Supersedes the ssl option. Default: false. The option will be converted to aboolean
type. Default: false Group: advanced- Parameters:
tls
- the value to set- Returns:
- the dsl builder
-
tlsAllowInvalidHostnames
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder tlsAllowInvalidHostnames(boolean tlsAllowInvalidHostnames) Specifies that the driver should allow invalid hostnames in the certificate for TLS connections. Supersedes sslInvalidHostNameAllowed. Has the same effect as tlsInsecure by setting tlsAllowInvalidHostnames to true. Default: false. The option is a:boolean
type. Default: false Group: advanced- Parameters:
tlsAllowInvalidHostnames
- the value to set- Returns:
- the dsl builder
-
tlsAllowInvalidHostnames
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder tlsAllowInvalidHostnames(String tlsAllowInvalidHostnames) Specifies that the driver should allow invalid hostnames in the certificate for TLS connections. Supersedes sslInvalidHostNameAllowed. Has the same effect as tlsInsecure by setting tlsAllowInvalidHostnames to true. Default: false. The option will be converted to aboolean
type. Default: false Group: advanced- Parameters:
tlsAllowInvalidHostnames
- the value to set- Returns:
- the dsl builder
-
waitQueueTimeoutMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder waitQueueTimeoutMS(Integer waitQueueTimeoutMS) Specifies the maximum amount of time, in milliseconds that a thread may wait for a connection to become available. Default: 120000 (120 seconds). The option is a:java.lang.Integer
type. Default: 120000 Group: advanced- Parameters:
waitQueueTimeoutMS
- the value to set- Returns:
- the dsl builder
-
waitQueueTimeoutMS
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder waitQueueTimeoutMS(String waitQueueTimeoutMS) Specifies the maximum amount of time, in milliseconds that a thread may wait for a connection to become available. Default: 120000 (120 seconds). The option will be converted to ajava.lang.Integer
type. Default: 120000 Group: advanced- Parameters:
waitQueueTimeoutMS
- the value to set- Returns:
- the dsl builder
-
writeConcern
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder writeConcern(String writeConcern) Configure the connection bean with the level of acknowledgment requested from MongoDB for write operations to a standalone mongod, replicaset or cluster. Possible values are ACKNOWLEDGED, W1, W2, W3, UNACKNOWLEDGED, JOURNALED or MAJORITY. The option is a:java.lang.String
type. Default: ACKNOWLEDGED Group: advanced- Parameters:
writeConcern
- the value to set- Returns:
- the dsl builder
-
writeResultAsHeader
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder writeResultAsHeader(boolean writeResultAsHeader) In write operations, it determines whether instead of returning WriteResult as the body of the OUT message, we transfer the IN message to the OUT and attach the WriteResult as a header. The option is a:boolean
type. Default: false Group: advanced- Parameters:
writeResultAsHeader
- the value to set- Returns:
- the dsl builder
-
writeResultAsHeader
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder writeResultAsHeader(String writeResultAsHeader) In write operations, it determines whether instead of returning WriteResult as the body of the OUT message, we transfer the IN message to the OUT and attach the WriteResult as a header. The option will be converted to aboolean
type. Default: false Group: advanced- Parameters:
writeResultAsHeader
- the value to set- Returns:
- the dsl builder
-
zlibCompressionLevel
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder zlibCompressionLevel(Integer zlibCompressionLevel) Specifies the degree of compression that Zlib should use to decrease the size of requests to the connected MongoDB instance. The level can range from -1 to 9, with lower values compressing faster (but resulting in larger requests) and larger values compressing slower (but resulting in smaller requests). Default: null. The option is a:java.lang.Integer
type. Group: advanced- Parameters:
zlibCompressionLevel
- the value to set- Returns:
- the dsl builder
-
zlibCompressionLevel
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder zlibCompressionLevel(String zlibCompressionLevel) Specifies the degree of compression that Zlib should use to decrease the size of requests to the connected MongoDB instance. The level can range from -1 to 9, with lower values compressing faster (but resulting in larger requests) and larger values compressing slower (but resulting in smaller requests). Default: null. The option will be converted to ajava.lang.Integer
type. Group: advanced- Parameters:
zlibCompressionLevel
- the value to set- Returns:
- the dsl builder
-