You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/01/24 16:18:55 UTC

[camel] branch master updated (bb40ceb -> a7c5bfd)

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

davsclaus pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from bb40ceb  CAMEL-14425: Polling Optimization: Consider number of maximum messages to process earlier during the poll to prevent running through multiple for-loops with all messages (#3508)
     new aa3e44b  Polished
     new a7c5bfd  Regen

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../camel-file-watch/src/main/docs/file-watch-component.adoc     | 9 +++++----
 .../org/apache/camel/component/file/watch/FileWatchEndpoint.java | 2 +-
 .../builder/endpoint/dsl/FileWatchEndpointBuilderFactory.java    | 8 ++++----
 docs/components/modules/ROOT/nav.adoc                            | 2 +-
 docs/components/modules/ROOT/pages/file-watch-component.adoc     | 9 +++++----
 docs/components/modules/ROOT/pages/mail-component.adoc           | 9 +++++++++
 6 files changed, 25 insertions(+), 14 deletions(-)


[camel] 01/02: Polished

Posted by da...@apache.org.
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.git

commit aa3e44b9a6cb90afef6752f2fd6502f28d0a99ab
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Jan 24 17:17:56 2020 +0100

    Polished
---
 .../camel-file-watch/src/main/docs/file-watch-component.adoc     | 9 +++++----
 .../org/apache/camel/component/file/watch/FileWatchEndpoint.java | 2 +-
 .../builder/endpoint/dsl/FileWatchEndpointBuilderFactory.java    | 8 ++++----
 3 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/components/camel-file-watch/src/main/docs/file-watch-component.adoc b/components/camel-file-watch/src/main/docs/file-watch-component.adoc
index 60ee9c9..b452a6e 100644
--- a/components/camel-file-watch/src/main/docs/file-watch-component.adoc
+++ b/components/camel-file-watch/src/main/docs/file-watch-component.adoc
@@ -1,7 +1,8 @@
-[[file-watch-component]]
-= file-watch Component
+= File Watch Component
 
 *Since Camel 3.0*
+*Since Camel 3.0*
+
 
 // HEADER START
 *Only consumer is supported*
@@ -12,7 +13,7 @@ This component can be used to watch file modification events in folder. It is ba
 == URI Options
 
 // component options: START
-The file-watch component supports 7 options, which are listed below.
+The File Watch component supports 7 options, which are listed below.
 
 
 
@@ -31,7 +32,7 @@ The file-watch component supports 7 options, which are listed below.
 
 
 // endpoint options: START
-The file-watch endpoint is configured using URI syntax:
+The File Watch endpoint is configured using URI syntax:
 
 ----
 file-watch:path
diff --git a/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchEndpoint.java b/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchEndpoint.java
index 18c8858..4df2153 100644
--- a/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchEndpoint.java
+++ b/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchEndpoint.java
@@ -35,7 +35,7 @@ import org.apache.camel.support.DefaultEndpoint;
 /**
  * The file-watch is used to monitor file events in directory using {@link java.nio.file.WatchService}
  */
-@UriEndpoint(firstVersion = "3.0.0", scheme = "file-watch", title = "file-watch", syntax = "file-watch:path",
+@UriEndpoint(firstVersion = "3.0.0", scheme = "file-watch", title = "File Watch", syntax = "file-watch:path",
 label = "file", consumerOnly = true)
 public class FileWatchEndpoint extends DefaultEndpoint implements MultipleConsumersSupport {
     @UriPath(label = "consumer", description = "Path of directory to consume events from.")
diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/FileWatchEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/FileWatchEndpointBuilderFactory.java
index 1ba384b..a3ca525 100644
--- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/FileWatchEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/FileWatchEndpointBuilderFactory.java
@@ -35,7 +35,7 @@ public interface FileWatchEndpointBuilderFactory {
 
 
     /**
-     * Builder for endpoint for the file-watch component.
+     * Builder for endpoint for the File Watch component.
      */
     public interface FileWatchEndpointBuilder extends EndpointConsumerBuilder {
         default AdvancedFileWatchEndpointBuilder advanced() {
@@ -316,7 +316,7 @@ public interface FileWatchEndpointBuilderFactory {
     }
 
     /**
-     * Advanced builder for endpoint for the file-watch component.
+     * Advanced builder for endpoint for the File Watch component.
      */
     public interface AdvancedFileWatchEndpointBuilder
             extends
@@ -449,7 +449,7 @@ public interface FileWatchEndpointBuilderFactory {
 
     public interface FileWatchBuilders {
         /**
-         * file-watch (camel-file-watch)
+         * File Watch (camel-file-watch)
          * The file-watch is used to monitor file events in directory using
          * java.nio.file.WatchService
          * 
@@ -467,7 +467,7 @@ public interface FileWatchEndpointBuilderFactory {
         }
     }
     /**
-     * file-watch (camel-file-watch)
+     * File Watch (camel-file-watch)
      * The file-watch is used to monitor file events in directory using
      * java.nio.file.WatchService
      * 


[camel] 02/02: Regen

Posted by da...@apache.org.
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.git

commit a7c5bfdc2979cb37fcaf5275a95291935493f2e3
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Jan 24 17:18:38 2020 +0100

    Regen
---
 docs/components/modules/ROOT/nav.adoc                        | 2 +-
 docs/components/modules/ROOT/pages/file-watch-component.adoc | 9 +++++----
 docs/components/modules/ROOT/pages/mail-component.adoc       | 9 +++++++++
 3 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc
index a470e6f..38c3c16 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -114,7 +114,7 @@
 * xref:fhir-component.adoc[FHIR Component]
 * xref:fhirJson-dataformat.adoc[FHIR JSon DataFormat]
 * xref:fhirXml-dataformat.adoc[FHIR XML DataFormat]
-* xref:file-watch-component.adoc[file-watch Component]
+* xref:file-watch-component.adoc[File Watch Component]
 * xref:file-component.adoc[File Component]
 * xref:flatpack-component.adoc[Flatpack Component]
 * xref:flatpack-dataformat.adoc[Flatpack DataFormat]
diff --git a/docs/components/modules/ROOT/pages/file-watch-component.adoc b/docs/components/modules/ROOT/pages/file-watch-component.adoc
index 7068e3c..d462dac 100644
--- a/docs/components/modules/ROOT/pages/file-watch-component.adoc
+++ b/docs/components/modules/ROOT/pages/file-watch-component.adoc
@@ -1,8 +1,9 @@
-[[file-watch-component]]
-= file-watch Component
+= File Watch Component
 :page-source: components/camel-file-watch/src/main/docs/file-watch-component.adoc
 
 *Since Camel 3.0*
+*Since Camel 3.0*
+
 
 // HEADER START
 *Only consumer is supported*
@@ -13,7 +14,7 @@ This component can be used to watch file modification events in folder. It is ba
 == URI Options
 
 // component options: START
-The file-watch component supports 7 options, which are listed below.
+The File Watch component supports 7 options, which are listed below.
 
 
 
@@ -32,7 +33,7 @@ The file-watch component supports 7 options, which are listed below.
 
 
 // endpoint options: START
-The file-watch endpoint is configured using URI syntax:
+The File Watch endpoint is configured using URI syntax:
 
 ----
 file-watch:path
diff --git a/docs/components/modules/ROOT/pages/mail-component.adoc b/docs/components/modules/ROOT/pages/mail-component.adoc
index 6a26e72..c95dc27 100644
--- a/docs/components/modules/ROOT/pages/mail-component.adoc
+++ b/docs/components/modules/ROOT/pages/mail-component.adoc
@@ -743,3 +743,12 @@ builder.unseen().body(Op.not, "Spam").subject(Op.not, "Spam")
 SearchTerm term = builder.build();
 --------------------------------------------------------------
 
+
+== Polling Optimization
+
+*Since Camel 3.1*
+
+The parameter maxMessagePerPoll and fetchSize allow you to restrict the number message that should be processed for each poll.
+These parameters should help to prevent bad performance when working with folders that contain a lot of messages.
+In previous versions these parameters have been evaluated too late, so that big mailboxes could still cause performance problems.
+With Camel 3.1 these parameters are evaluated earlier during the poll to avoid these problems.
\ No newline at end of file