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


The following commit(s) were added to refs/heads/master by this push:
     new 194a83a  Add enums for thread pool profile metadata
194a83a is described below

commit 194a83ab1f76a3ba421cfdc2c69f9bc77be78e65
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Wed Feb 10 13:21:33 2021 +0100

    Add enums for thread pool profile metadata
---
 .../resources/org/apache/camel/catalog/models/threadPoolProfile.json   | 2 +-
 .../generated/resources/org/apache/camel/model/threadPoolProfile.json  | 2 +-
 .../main/java/org/apache/camel/model/ThreadPoolProfileDefinition.java  | 3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/threadPoolProfile.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/threadPoolProfile.json
index c580673..4daf8ef 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/threadPoolProfile.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/threadPoolProfile.json
@@ -18,7 +18,7 @@
     "timeUnit": { "kind": "attribute", "displayName": "Time Unit", "required": 
false, "type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ 
"DAYS", "HOURS", "MICROSECONDS", "MILLISECONDS", "MINUTES", "NANOSECONDS", 
"SECONDS" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "Sets the time unit to use for keep alive time By default 
SECONDS is used." },
     "maxQueueSize": { "kind": "attribute", "displayName": "Max Queue Size", 
"required": false, "type": "integer", "javaType": "java.lang.Integer", 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the maximum number of tasks in the work queue. Use -1 or Integer.MAX_VALUE for 
an unbounded queue" },
     "allowCoreThreadTimeOut": { "kind": "attribute", "displayName": "Allow 
Core Thread Time Out", "required": false, "type": "boolean", "javaType": 
"java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether idle core threads is allowed to 
timeout and therefore can shrink the pool size below the core pool size Is by 
default true" },
-    "rejectedPolicy": { "kind": "attribute", "displayName": "Rejected Policy", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sets the handler 
for tasks which cannot be executed by the thread pool." },
+    "rejectedPolicy": { "kind": "attribute", "displayName": "Rejected Policy", 
"required": false, "type": "enum", "javaType": 
"org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy", "enum": [ "Abort", 
"CallerRuns", "Discard", "DiscardOldest" ], "deprecated": false, "autowired": 
false, "secret": false, "description": "Sets the handler for tasks which cannot 
be executed by the thread pool." },
     "id": { "kind": "attribute", "displayName": "Id", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Sets the id of this node" 
},
     "description": { "kind": "element", "displayName": "Description", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.model.DescriptionDefinition", "deprecated": false, 
"autowired": false, "secret": false, "description": "Sets the description of 
this node" }
   }
diff --git 
a/core/camel-core-model/src/generated/resources/org/apache/camel/model/threadPoolProfile.json
 
b/core/camel-core-model/src/generated/resources/org/apache/camel/model/threadPoolProfile.json
index c580673..4daf8ef 100644
--- 
a/core/camel-core-model/src/generated/resources/org/apache/camel/model/threadPoolProfile.json
+++ 
b/core/camel-core-model/src/generated/resources/org/apache/camel/model/threadPoolProfile.json
@@ -18,7 +18,7 @@
     "timeUnit": { "kind": "attribute", "displayName": "Time Unit", "required": 
false, "type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ 
"DAYS", "HOURS", "MICROSECONDS", "MILLISECONDS", "MINUTES", "NANOSECONDS", 
"SECONDS" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "Sets the time unit to use for keep alive time By default 
SECONDS is used." },
     "maxQueueSize": { "kind": "attribute", "displayName": "Max Queue Size", 
"required": false, "type": "integer", "javaType": "java.lang.Integer", 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the maximum number of tasks in the work queue. Use -1 or Integer.MAX_VALUE for 
an unbounded queue" },
     "allowCoreThreadTimeOut": { "kind": "attribute", "displayName": "Allow 
Core Thread Time Out", "required": false, "type": "boolean", "javaType": 
"java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether idle core threads is allowed to 
timeout and therefore can shrink the pool size below the core pool size Is by 
default true" },
-    "rejectedPolicy": { "kind": "attribute", "displayName": "Rejected Policy", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy", "deprecated": 
false, "autowired": false, "secret": false, "description": "Sets the handler 
for tasks which cannot be executed by the thread pool." },
+    "rejectedPolicy": { "kind": "attribute", "displayName": "Rejected Policy", 
"required": false, "type": "enum", "javaType": 
"org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy", "enum": [ "Abort", 
"CallerRuns", "Discard", "DiscardOldest" ], "deprecated": false, "autowired": 
false, "secret": false, "description": "Sets the handler for tasks which cannot 
be executed by the thread pool." },
     "id": { "kind": "attribute", "displayName": "Id", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Sets the id of this node" 
},
     "description": { "kind": "element", "displayName": "Description", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.model.DescriptionDefinition", "deprecated": false, 
"autowired": false, "secret": false, "description": "Sets the description of 
this node" }
   }
diff --git 
a/core/camel-core-model/src/main/java/org/apache/camel/model/ThreadPoolProfileDefinition.java
 
b/core/camel-core-model/src/main/java/org/apache/camel/model/ThreadPoolProfileDefinition.java
index 1cc0772..cfc5a2a 100644
--- 
a/core/camel-core-model/src/main/java/org/apache/camel/model/ThreadPoolProfileDefinition.java
+++ 
b/core/camel-core-model/src/main/java/org/apache/camel/model/ThreadPoolProfileDefinition.java
@@ -56,7 +56,8 @@ public class ThreadPoolProfileDefinition extends 
OptionalIdentifiedDefinition<Th
     @Metadata(javaType = "java.lang.Boolean")
     private String allowCoreThreadTimeOut;
     @XmlAttribute
-    @Metadata(javaType = 
"org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy")
+    @Metadata(javaType = 
"org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy",
+              enums = "Abort,CallerRuns,DiscardOldest,Discard")
     private String rejectedPolicy;
 
     public ThreadPoolProfileDefinition() {

Reply via email to