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
All Methods Instance Methods Default Methods Modifier and Type Method Description default MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder
basic()
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
basicPropertyBinding(boolean basicPropertyBinding)
Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities.default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
basicPropertyBinding(String basicPropertyBinding)
Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities.default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
cursorRegenerationDelay(long cursorRegenerationDelay)
MongoDB tailable cursors will block until new data arrives.default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
cursorRegenerationDelay(String cursorRegenerationDelay)
MongoDB tailable cursors will block until new data arrives.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.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.default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
exceptionHandler(String exceptionHandler)
To let the consumer use a custom ExceptionHandler.default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler)
To let the consumer use a custom ExceptionHandler.default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
exchangePattern(String exchangePattern)
Sets the exchange pattern when the consumer creates an exchange.default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
exchangePattern(org.apache.camel.ExchangePattern exchangePattern)
Sets the exchange pattern when the consumer creates an exchange.default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
readPreference(String readPreference)
Configure how MongoDB clients route read operations to the members of a replica set.default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
synchronous(boolean synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder
synchronous(String synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).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.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.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.
-
-
-
Method Detail
-
basic
default MongoDbEndpointBuilderFactory.MongoDbEndpointConsumerBuilder basic()
-
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)
-
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)
-
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)
-
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)
-
basicPropertyBinding
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder basicPropertyBinding(boolean basicPropertyBinding)
Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities. The option is a:boolean
type. Default: false Group: advanced
-
basicPropertyBinding
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder basicPropertyBinding(String basicPropertyBinding)
Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities. The option will be converted to aboolean
type. Default: false Group: advanced
-
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
-
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
-
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
-
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
-
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
-
synchronous
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder synchronous(boolean synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). The option is a:boolean
type. Default: false Group: advanced
-
synchronous
default MongoDbEndpointBuilderFactory.AdvancedMongoDbEndpointConsumerBuilder synchronous(String synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). The option will be converted to aboolean
type. Default: false Group: advanced
-
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
-
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
-
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
-
-