This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/master by this push:
     new fff2ff4  CAMEL-16222: camel-core - ExchangeFactory SPI to allow to use 
exchange pooling
fff2ff4 is described below

commit fff2ff4277ae50b03fa330ab6ed5dbe5e36b1a6b
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Mar 2 09:16:41 2021 +0100

    CAMEL-16222: camel-core - ExchangeFactory SPI to allow to use exchange 
pooling
---
 core/camel-spring-boot/src/main/docs/spring-boot.adoc                | 2 +-
 .../org/apache/camel/spring/boot/CamelConfigurationProperties.java   | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/core/camel-spring-boot/src/main/docs/spring-boot.adoc 
b/core/camel-spring-boot/src/main/docs/spring-boot.adoc
index 9b5fd21..755be32 100644
--- a/core/camel-spring-boot/src/main/docs/spring-boot.adoc
+++ b/core/camel-spring-boot/src/main/docs/spring-boot.adoc
@@ -162,7 +162,7 @@ The component supports 168 options, which are listed below.
 | *camel.springboot.endpoint-bridge-error-handler* | 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. <p/> 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. The 
default value is false.  [...]
 | *camel.springboot.endpoint-lazy-start-producer* | 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  [...]
 | *camel.springboot.endpoint-runtime-statistics-enabled* | Sets whether 
endpoint runtime statistics is enabled (gathers runtime usage of each incoming 
and outgoing endpoints). The default value is false. | false | Boolean
-| *camel.springboot.exchange-factory* | Controls whether to pool (reuse) 
exchanges or create new fresh exchanges (default). Using pooled will reduce JVM 
garbage collection overhead by avoiding to re-create Exchange instances per 
message each consumer receives. | default | String
+| *camel.springboot.exchange-factory* | Controls whether to pool (reuse) 
exchanges or create new exchanges (prototype). Using pooled will reduce JVM 
garbage collection overhead by avoiding to re-create Exchange instances per 
message each consumer receives. The default is prototype mode. | default | 
String
 | *camel.springboot.exchange-factory-capacity* | The capacity the pool (for 
each consumer) uses for storing exchanges. The default capacity is 100. | 100 | 
Integer
 | *camel.springboot.exchange-factory-statistics-enabled* | Configures whether 
statistics is enabled on exchange factory. | false | Boolean
 | *camel.springboot.file-configurations* | Directory to load additional 
configuration files that contains configuration values that takes precedence 
over any other configuration. This can be used to refer to files that may have 
secret configuration that has been mounted on the file system for containers. 
You must use either file: or classpath: as prefix to load from file system or 
classpath. Then you can specify a pattern to load from sub directories and a 
name pattern such as file:/var/ [...]
diff --git 
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
 
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
index 90d0427..8366f18 100644
--- 
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
+++ 
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
@@ -650,8 +650,9 @@ public class CamelConfigurationProperties extends 
DefaultConfigurationProperties
     private boolean lightweight;
 
     /**
-     * Controls whether to pool (reuse) exchanges or create new fresh 
exchanges (default). Using pooled will reduce JVM
-     * garbage collection overhead by avoiding to re-create Exchange instances 
per message each consumer receives.
+     * Controls whether to pool (reuse) exchanges or create new exchanges 
(prototype). Using pooled will reduce JVM
+     * garbage collection overhead by avoiding to re-create Exchange instances 
per message each consumer receives. The
+     * default is prototype mode.
      */
     private String exchangeFactory = "default";
 

Reply via email to