This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new b4633c93ae6 [create-pull-request] automated change (#620)
b4633c93ae6 is described below
commit b4633c93ae6762af6b75aa6201bf999a80042d9e
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Sep 1 06:18:30 2022 +0200
[create-pull-request] automated change (#620)
Co-authored-by: oscerd <[email protected]>
---
.../catalog/components/caffeine-cache.json | 50 ++++----
.../catalog/components/caffeine-loadcache.json | 48 +++----
.../src/main/docs/caffeine.json | 32 +++--
.../CaffeineCacheComponentConfiguration.java | 138 ++++++++++++---------
.../CaffeineCacheComponentConverter.java | 4 +-
.../CaffeineLoadCacheComponentConfiguration.java | 138 ++++++++++++---------
.../CaffeineLoadCacheComponentConverter.java | 4 +-
tooling/camel-spring-boot-dependencies/pom.xml | 5 -
8 files changed, 221 insertions(+), 198 deletions(-)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/caffeine-cache.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/caffeine-cache.json
index bd2e90b9dfa..7626d954c25 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/caffeine-cache.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/caffeine-cache.json
@@ -22,22 +22,22 @@
"lenientProperties": false
},
"componentProperties": {
- "action": { "kind": "property", "displayName": "Action", "group":
"producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
cache action. If an action is set in the message header, then the operation
from the header takes p [...]
- "cacheLoader": { "kind": "property", "displayName": "Cache Loader",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.CacheLoader", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure a
CacheLoader in case of a LoadCache use" },
- "createCacheIfNotExist": { "kind": "property", "displayName": "Create
Cache If Not Exist", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Configure if a cache
need to be created if it does exist or can't be pre-configured." },
- "evictionType": { "kind": "property", "displayName": "Eviction Type",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "org.apache.camel.component.caffeine.EvictionType", "enum": [
"size_based", "time_based" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "SIZE_BASED", "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the e [...]
- "expireAfterAccessTime": { "kind": "property", "displayName": "Expire
After Access Time", "group": "producer", "label": "producer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the expire After
Access Time in case of time based Eviction (in seconds)" },
- "expireAfterWriteTime": { "kind": "property", "displayName": "Expire After
Write Time", "group": "producer", "label": "producer", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the expire After
Access Write in case of time based Eviction (in seconds)" },
- "initialCapacity": { "kind": "property", "displayName": "Initial
Capacity", "group": "producer", "label": "producer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 10000, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the initial Capacity
for the cache" },
- "key": { "kind": "property", "displayName": "Key", "group": "producer",
"label": "producer", "required": false, "type": "object", "javaType":
"java.lang.Object", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
action key. If a key is set in the message header, then the key from the header
takes precedence." },
+ "action": { "kind": "property", "displayName": "Action", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "enum": [ "GET", "GET_ALL", "PUT", "PUT_ALL", "INVALIDATE",
"INVALIDATE_ALL", "CLEANUP", "AS_MAP" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
cache [...]
+ "createCacheIfNotExist": { "kind": "property", "displayName": "Create
Cache If Not Exist", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Automatic create the
Caffeine cache if none has been configured or exists in the reg [...]
+ "evictionType": { "kind": "property", "displayName": "Eviction Type",
"group": "producer", "label": "", "required": false, "type": "object",
"javaType": "org.apache.camel.component.caffeine.EvictionType", "enum": [
"size_based", "time_based" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "SIZE_BASED", "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the eviction [...]
+ "expireAfterAccessTime": { "kind": "property", "displayName": "Expire
After Access Time", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies that each
entry should be automatically removed from the cache once a fixed dura [...]
+ "expireAfterWriteTime": { "kind": "property", "displayName": "Expire After
Write Time", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies that each
entry should be automatically removed from the cache once a fixed durati [...]
+ "initialCapacity": { "kind": "property", "displayName": "Initial
Capacity", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Sets the minimum total
size for the internal data structures. Providing a large enough estimate at
construction [...]
+ "key": { "kind": "property", "displayName": "Key", "group": "producer",
"label": "", "required": false, "type": "object", "javaType":
"java.lang.Object", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
action key. If a key is set in the message header, then the key from the header
takes precedence." },
"lazyStartProducer": { "kind": "property", "displayName": "Lazy Start
Producer", "group": "producer", "label": "producer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "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 star [...]
- "maximumSize": { "kind": "property", "displayName": "Maximum Size",
"group": "producer", "label": "producer", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 10000, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the maximum size for
the cache" },
- "removalListener": { "kind": "property", "displayName": "Removal
Listener", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.github.benmanes.caffeine.cache.RemovalListener",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific removal
Listener for the cache" },
- "statsCounter": { "kind": "property", "displayName": "Stats Counter",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.stats.StatsCounter",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific Stats
Counter for the cache stats" },
- "statsEnabled": { "kind": "property", "displayName": "Stats Enabled",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To enable stats on the
cache" },
+ "maximumSize": { "kind": "property", "displayName": "Maximum Size",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies the maximum
number of entries the cache may contain. Note that the cache may evict an entry
before this limit [...]
"autowiredEnabled": { "kind": "property", "displayName": "Autowired
Enabled", "group": "advanced", "label": "advanced", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "description": "Whether autowiring is
enabled. This is used for automatic autowiring options (the option must be
marked as autowired) by looking up in the registry to find if there is a single
instance of matching type, which t [...]
+ "cacheLoader": { "kind": "property", "displayName": "Cache Loader",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.CacheLoader", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure a
CacheLoader in case of a LoadCache use" },
"configuration": { "kind": "property", "displayName": "Configuration",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "org.apache.camel.component.caffeine.CaffeineConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the global component configuration" },
"keyType": { "kind": "property", "displayName": "Key Type", "group":
"advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "The cache key type,
default java.lang.Object" },
+ "removalListener": { "kind": "property", "displayName": "Removal
Listener", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "com.github.benmanes.caffeine.cache.RemovalListener",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific removal
Listener for the cache" },
+ "statsCounter": { "kind": "property", "displayName": "Stats Counter",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.stats.StatsCounter",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific Stats
Counter for the cache stats" },
+ "statsEnabled": { "kind": "property", "displayName": "Stats Enabled",
"group": "advanced", "label": "advanced", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To enable stats on the
cache" },
"valueType": { "kind": "property", "displayName": "Value Type", "group":
"advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "The cache value type,
default java.lang.Object" }
},
"headers": {
@@ -50,21 +50,21 @@
"CamelCaffeineOldValue": { "kind": "header", "displayName": "", "group":
"producer", "label": "", "required": false, "javaType": "", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The old value returned according to the action.",
"constantName":
"org.apache.camel.component.caffeine.CaffeineConstants#OLD_VALUE" }
},
"properties": {
- "cacheName": { "kind": "path", "displayName": "Cache Name", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "the cache name" },
- "action": { "kind": "parameter", "displayName": "Action", "group":
"producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
cache action. If an action is set in the message header, then the operation
from the header takes [...]
- "cacheLoader": { "kind": "parameter", "displayName": "Cache Loader",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.CacheLoader", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure a
CacheLoader in case of a LoadCache use" },
- "createCacheIfNotExist": { "kind": "parameter", "displayName": "Create
Cache If Not Exist", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Configure if a cache
need to be created if it does exist or can't be pre-configured." },
- "evictionType": { "kind": "parameter", "displayName": "Eviction Type",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "org.apache.camel.component.caffeine.EvictionType", "enum": [
"size_based", "time_based" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "SIZE_BASED", "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the [...]
- "expireAfterAccessTime": { "kind": "parameter", "displayName": "Expire
After Access Time", "group": "producer", "label": "producer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the expire After
Access Time in case of time based Eviction (in seconds)" },
- "expireAfterWriteTime": { "kind": "parameter", "displayName": "Expire
After Write Time", "group": "producer", "label": "producer", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the expire After
Access Write in case of time based Eviction (in seconds)" },
- "initialCapacity": { "kind": "parameter", "displayName": "Initial
Capacity", "group": "producer", "label": "producer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 10000, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the initial Capacity
for the cache" },
- "key": { "kind": "parameter", "displayName": "Key", "group": "producer",
"label": "producer", "required": false, "type": "object", "javaType":
"java.lang.Object", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
action key. If a key is set in the message header, then the key from the header
takes precedence." },
- "maximumSize": { "kind": "parameter", "displayName": "Maximum Size",
"group": "producer", "label": "producer", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 10000, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the maximum size for
the cache" },
- "removalListener": { "kind": "parameter", "displayName": "Removal
Listener", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.github.benmanes.caffeine.cache.RemovalListener",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific removal
Listener for the cache" },
- "statsCounter": { "kind": "parameter", "displayName": "Stats Counter",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.stats.StatsCounter",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific Stats
Counter for the cache stats" },
- "statsEnabled": { "kind": "parameter", "displayName": "Stats Enabled",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To enable stats on the
cache" },
+ "cacheName": { "kind": "path", "displayName": "Cache Name", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Cache name" },
+ "action": { "kind": "parameter", "displayName": "Action", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "enum": [ "GET", "GET_ALL", "PUT", "PUT_ALL", "INVALIDATE",
"INVALIDATE_ALL", "CLEANUP", "AS_MAP" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
cache [...]
+ "createCacheIfNotExist": { "kind": "parameter", "displayName": "Create
Cache If Not Exist", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Automatic create the
Caffeine cache if none has been configured or exists in the re [...]
+ "evictionType": { "kind": "parameter", "displayName": "Eviction Type",
"group": "producer", "label": "", "required": false, "type": "object",
"javaType": "org.apache.camel.component.caffeine.EvictionType", "enum": [
"size_based", "time_based" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "SIZE_BASED", "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the eviction [...]
+ "expireAfterAccessTime": { "kind": "parameter", "displayName": "Expire
After Access Time", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies that each
entry should be automatically removed from the cache once a fixed dur [...]
+ "expireAfterWriteTime": { "kind": "parameter", "displayName": "Expire
After Write Time", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies that each
entry should be automatically removed from the cache once a fixed durat [...]
+ "initialCapacity": { "kind": "parameter", "displayName": "Initial
Capacity", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Sets the minimum total
size for the internal data structures. Providing a large enough estimate at
constructio [...]
+ "key": { "kind": "parameter", "displayName": "Key", "group": "producer",
"label": "", "required": false, "type": "object", "javaType":
"java.lang.Object", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
action key. If a key is set in the message header, then the key from the header
takes precedence." },
+ "maximumSize": { "kind": "parameter", "displayName": "Maximum Size",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies the maximum
number of entries the cache may contain. Note that the cache may evict an entry
before this limi [...]
"lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start
Producer", "group": "producer (advanced)", "label": "producer,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "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 other [...]
+ "cacheLoader": { "kind": "parameter", "displayName": "Cache Loader",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.CacheLoader", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure a
CacheLoader in case of a LoadCache use" },
"keyType": { "kind": "parameter", "displayName": "Key Type", "group":
"advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "The cache key type,
default java.lang.Object" },
+ "removalListener": { "kind": "parameter", "displayName": "Removal
Listener", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "com.github.benmanes.caffeine.cache.RemovalListener",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific removal
Listener for the cache" },
+ "statsCounter": { "kind": "parameter", "displayName": "Stats Counter",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.stats.StatsCounter",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific Stats
Counter for the cache stats" },
+ "statsEnabled": { "kind": "parameter", "displayName": "Stats Enabled",
"group": "advanced", "label": "advanced", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To enable stats on the
cache" },
"valueType": { "kind": "parameter", "displayName": "Value Type", "group":
"advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "The cache value type,
default java.lang.Object" }
}
}
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/caffeine-loadcache.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/caffeine-loadcache.json
index 7a0611d29c6..a70badf50b5 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/caffeine-loadcache.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/caffeine-loadcache.json
@@ -22,22 +22,22 @@
"lenientProperties": false
},
"componentProperties": {
- "action": { "kind": "property", "displayName": "Action", "group":
"producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
cache action. If an action is set in the message header, then the operation
from the header takes p [...]
- "cacheLoader": { "kind": "property", "displayName": "Cache Loader",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.CacheLoader", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure a
CacheLoader in case of a LoadCache use" },
- "createCacheIfNotExist": { "kind": "property", "displayName": "Create
Cache If Not Exist", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Configure if a cache
need to be created if it does exist or can't be pre-configured." },
- "evictionType": { "kind": "property", "displayName": "Eviction Type",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "org.apache.camel.component.caffeine.EvictionType", "enum": [
"size_based", "time_based" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "SIZE_BASED", "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the e [...]
- "expireAfterAccessTime": { "kind": "property", "displayName": "Expire
After Access Time", "group": "producer", "label": "producer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the expire After
Access Time in case of time based Eviction (in seconds)" },
- "expireAfterWriteTime": { "kind": "property", "displayName": "Expire After
Write Time", "group": "producer", "label": "producer", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the expire After
Access Write in case of time based Eviction (in seconds)" },
- "initialCapacity": { "kind": "property", "displayName": "Initial
Capacity", "group": "producer", "label": "producer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 10000, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the initial Capacity
for the cache" },
- "key": { "kind": "property", "displayName": "Key", "group": "producer",
"label": "producer", "required": false, "type": "object", "javaType":
"java.lang.Object", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
action key. If a key is set in the message header, then the key from the header
takes precedence." },
+ "action": { "kind": "property", "displayName": "Action", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "enum": [ "GET", "GET_ALL", "PUT", "PUT_ALL", "INVALIDATE",
"INVALIDATE_ALL", "CLEANUP", "AS_MAP" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
cache [...]
+ "createCacheIfNotExist": { "kind": "property", "displayName": "Create
Cache If Not Exist", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Automatic create the
Caffeine cache if none has been configured or exists in the reg [...]
+ "evictionType": { "kind": "property", "displayName": "Eviction Type",
"group": "producer", "label": "", "required": false, "type": "object",
"javaType": "org.apache.camel.component.caffeine.EvictionType", "enum": [
"size_based", "time_based" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "SIZE_BASED", "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the eviction [...]
+ "expireAfterAccessTime": { "kind": "property", "displayName": "Expire
After Access Time", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies that each
entry should be automatically removed from the cache once a fixed dura [...]
+ "expireAfterWriteTime": { "kind": "property", "displayName": "Expire After
Write Time", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies that each
entry should be automatically removed from the cache once a fixed durati [...]
+ "initialCapacity": { "kind": "property", "displayName": "Initial
Capacity", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Sets the minimum total
size for the internal data structures. Providing a large enough estimate at
construction [...]
+ "key": { "kind": "property", "displayName": "Key", "group": "producer",
"label": "", "required": false, "type": "object", "javaType":
"java.lang.Object", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
action key. If a key is set in the message header, then the key from the header
takes precedence." },
"lazyStartProducer": { "kind": "property", "displayName": "Lazy Start
Producer", "group": "producer", "label": "producer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "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 star [...]
- "maximumSize": { "kind": "property", "displayName": "Maximum Size",
"group": "producer", "label": "producer", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 10000, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the maximum size for
the cache" },
- "removalListener": { "kind": "property", "displayName": "Removal
Listener", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.github.benmanes.caffeine.cache.RemovalListener",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific removal
Listener for the cache" },
- "statsCounter": { "kind": "property", "displayName": "Stats Counter",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.stats.StatsCounter",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific Stats
Counter for the cache stats" },
- "statsEnabled": { "kind": "property", "displayName": "Stats Enabled",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To enable stats on the
cache" },
+ "maximumSize": { "kind": "property", "displayName": "Maximum Size",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies the maximum
number of entries the cache may contain. Note that the cache may evict an entry
before this limit [...]
"autowiredEnabled": { "kind": "property", "displayName": "Autowired
Enabled", "group": "advanced", "label": "advanced", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "description": "Whether autowiring is
enabled. This is used for automatic autowiring options (the option must be
marked as autowired) by looking up in the registry to find if there is a single
instance of matching type, which t [...]
+ "cacheLoader": { "kind": "property", "displayName": "Cache Loader",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.CacheLoader", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure a
CacheLoader in case of a LoadCache use" },
"configuration": { "kind": "property", "displayName": "Configuration",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "org.apache.camel.component.caffeine.CaffeineConfiguration",
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the global component configuration" },
"keyType": { "kind": "property", "displayName": "Key Type", "group":
"advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "The cache key type,
default java.lang.Object" },
+ "removalListener": { "kind": "property", "displayName": "Removal
Listener", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "com.github.benmanes.caffeine.cache.RemovalListener",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific removal
Listener for the cache" },
+ "statsCounter": { "kind": "property", "displayName": "Stats Counter",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.stats.StatsCounter",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific Stats
Counter for the cache stats" },
+ "statsEnabled": { "kind": "property", "displayName": "Stats Enabled",
"group": "advanced", "label": "advanced", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To enable stats on the
cache" },
"valueType": { "kind": "property", "displayName": "Value Type", "group":
"advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "The cache value type,
default java.lang.Object" }
},
"headers": {
@@ -51,20 +51,20 @@
},
"properties": {
"cacheName": { "kind": "path", "displayName": "Cache Name", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "the cache name" },
- "action": { "kind": "parameter", "displayName": "Action", "group":
"producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
cache action. If an action is set in the message header, then the operation
from the header takes [...]
- "cacheLoader": { "kind": "parameter", "displayName": "Cache Loader",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.CacheLoader", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure a
CacheLoader in case of a LoadCache use" },
- "createCacheIfNotExist": { "kind": "parameter", "displayName": "Create
Cache If Not Exist", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Configure if a cache
need to be created if it does exist or can't be pre-configured." },
- "evictionType": { "kind": "parameter", "displayName": "Eviction Type",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "org.apache.camel.component.caffeine.EvictionType", "enum": [
"size_based", "time_based" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "SIZE_BASED", "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the [...]
- "expireAfterAccessTime": { "kind": "parameter", "displayName": "Expire
After Access Time", "group": "producer", "label": "producer", "required":
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the expire After
Access Time in case of time based Eviction (in seconds)" },
- "expireAfterWriteTime": { "kind": "parameter", "displayName": "Expire
After Write Time", "group": "producer", "label": "producer", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the expire After
Access Write in case of time based Eviction (in seconds)" },
- "initialCapacity": { "kind": "parameter", "displayName": "Initial
Capacity", "group": "producer", "label": "producer", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 10000, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the initial Capacity
for the cache" },
- "key": { "kind": "parameter", "displayName": "Key", "group": "producer",
"label": "producer", "required": false, "type": "object", "javaType":
"java.lang.Object", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
action key. If a key is set in the message header, then the key from the header
takes precedence." },
- "maximumSize": { "kind": "parameter", "displayName": "Maximum Size",
"group": "producer", "label": "producer", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 10000, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the maximum size for
the cache" },
- "removalListener": { "kind": "parameter", "displayName": "Removal
Listener", "group": "producer", "label": "producer", "required": false, "type":
"object", "javaType": "com.github.benmanes.caffeine.cache.RemovalListener",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific removal
Listener for the cache" },
- "statsCounter": { "kind": "parameter", "displayName": "Stats Counter",
"group": "producer", "label": "producer", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.stats.StatsCounter",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific Stats
Counter for the cache stats" },
- "statsEnabled": { "kind": "parameter", "displayName": "Stats Enabled",
"group": "producer", "label": "producer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To enable stats on the
cache" },
+ "action": { "kind": "parameter", "displayName": "Action", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "enum": [ "GET", "GET_ALL", "PUT", "PUT_ALL", "INVALIDATE",
"INVALIDATE_ALL", "CLEANUP", "AS_MAP" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
cache [...]
+ "createCacheIfNotExist": { "kind": "parameter", "displayName": "Create
Cache If Not Exist", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Automatic create the
Caffeine cache if none has been configured or exists in the re [...]
+ "evictionType": { "kind": "parameter", "displayName": "Eviction Type",
"group": "producer", "label": "", "required": false, "type": "object",
"javaType": "org.apache.camel.component.caffeine.EvictionType", "enum": [
"size_based", "time_based" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "SIZE_BASED", "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set the eviction [...]
+ "expireAfterAccessTime": { "kind": "parameter", "displayName": "Expire
After Access Time", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies that each
entry should be automatically removed from the cache once a fixed dur [...]
+ "expireAfterWriteTime": { "kind": "parameter", "displayName": "Expire
After Write Time", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 300, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies that each
entry should be automatically removed from the cache once a fixed durat [...]
+ "initialCapacity": { "kind": "parameter", "displayName": "Initial
Capacity", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Sets the minimum total
size for the internal data structures. Providing a large enough estimate at
constructio [...]
+ "key": { "kind": "parameter", "displayName": "Key", "group": "producer",
"label": "", "required": false, "type": "object", "javaType":
"java.lang.Object", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure the default
action key. If a key is set in the message header, then the key from the header
takes precedence." },
+ "maximumSize": { "kind": "parameter", "displayName": "Maximum Size",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Specifies the maximum
number of entries the cache may contain. Note that the cache may evict an entry
before this limi [...]
"lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start
Producer", "group": "producer (advanced)", "label": "producer,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "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 other [...]
+ "cacheLoader": { "kind": "parameter", "displayName": "Cache Loader",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.CacheLoader", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To configure a
CacheLoader in case of a LoadCache use" },
"keyType": { "kind": "parameter", "displayName": "Key Type", "group":
"advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "The cache key type,
default java.lang.Object" },
+ "removalListener": { "kind": "parameter", "displayName": "Removal
Listener", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "com.github.benmanes.caffeine.cache.RemovalListener",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific removal
Listener for the cache" },
+ "statsCounter": { "kind": "parameter", "displayName": "Stats Counter",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.github.benmanes.caffeine.cache.stats.StatsCounter",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "Set a specific Stats
Counter for the cache stats" },
+ "statsEnabled": { "kind": "parameter", "displayName": "Stats Enabled",
"group": "advanced", "label": "advanced", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "To enable stats on the
cache" },
"valueType": { "kind": "parameter", "displayName": "Value Type", "group":
"advanced", "label": "advanced", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.caffeine.CaffeineConfiguration",
"configurationField": "configuration", "description": "The cache value type,
default java.lang.Object" }
}
}
diff --git
a/components-starter/camel-caffeine-starter/src/main/docs/caffeine.json
b/components-starter/camel-caffeine-starter/src/main/docs/caffeine.json
index e02b18ec5b8..0a10eac1a0a 100644
--- a/components-starter/camel-caffeine-starter/src/main/docs/caffeine.json
+++ b/components-starter/camel-caffeine-starter/src/main/docs/caffeine.json
@@ -64,7 +64,7 @@
{
"name": "camel.component.caffeine-cache.create-cache-if-not-exist",
"type": "java.lang.Boolean",
- "description": "Configure if a cache need to be created if it does exist
or can't be pre-configured.",
+ "description": "Automatic create the Caffeine cache if none has been
configured or exists in the registry.",
"sourceType":
"org.apache.camel.component.caffeine.cache.springboot.CaffeineCacheComponentConfiguration",
"defaultValue": true
},
@@ -88,23 +88,22 @@
{
"name": "camel.component.caffeine-cache.expire-after-access-time",
"type": "java.lang.Integer",
- "description": "Set the expire After Access Time in case of time based
Eviction (in seconds)",
+ "description": "Specifies that each entry should be automatically
removed from the cache once a fixed duration has elapsed after the entry's
creation, the most recent replacement of its value, or its last read. Access
time is reset by all cache read and write operations. The unit is in seconds.",
"sourceType":
"org.apache.camel.component.caffeine.cache.springboot.CaffeineCacheComponentConfiguration",
"defaultValue": 300
},
{
"name": "camel.component.caffeine-cache.expire-after-write-time",
"type": "java.lang.Integer",
- "description": "Set the expire After Access Write in case of time based
Eviction (in seconds)",
+ "description": "Specifies that each entry should be automatically
removed from the cache once a fixed duration has elapsed after the entry's
creation, or the most recent replacement of its value. The unit is in seconds.",
"sourceType":
"org.apache.camel.component.caffeine.cache.springboot.CaffeineCacheComponentConfiguration",
"defaultValue": 300
},
{
"name": "camel.component.caffeine-cache.initial-capacity",
"type": "java.lang.Integer",
- "description": "Set the initial Capacity for the cache",
- "sourceType":
"org.apache.camel.component.caffeine.cache.springboot.CaffeineCacheComponentConfiguration",
- "defaultValue": 10000
+ "description": "Sets the minimum total size for the internal data
structures. Providing a large enough estimate at construction time avoids the
need for expensive resizing operations later, but setting this value
unnecessarily high wastes memory.",
+ "sourceType":
"org.apache.camel.component.caffeine.cache.springboot.CaffeineCacheComponentConfiguration"
},
{
"name": "camel.component.caffeine-cache.key-type",
@@ -122,9 +121,8 @@
{
"name": "camel.component.caffeine-cache.maximum-size",
"type": "java.lang.Integer",
- "description": "Set the maximum size for the cache",
- "sourceType":
"org.apache.camel.component.caffeine.cache.springboot.CaffeineCacheComponentConfiguration",
- "defaultValue": 10000
+ "description": "Specifies the maximum number of entries the cache may
contain. Note that the cache may evict an entry before this limit is exceeded
or temporarily exceed the threshold while evicting. As the cache size grows
close to the maximum, the cache evicts entries that are less likely to be used
again. For example, the cache may evict an entry because it hasn't been used
recently or very often. When size is zero, elements will be evicted immediately
after being loaded into th [...]
+ "sourceType":
"org.apache.camel.component.caffeine.cache.springboot.CaffeineCacheComponentConfiguration"
},
{
"name": "camel.component.caffeine-cache.removal-listener",
@@ -179,7 +177,7 @@
{
"name": "camel.component.caffeine-loadcache.create-cache-if-not-exist",
"type": "java.lang.Boolean",
- "description": "Configure if a cache need to be created if it does exist
or can't be pre-configured.",
+ "description": "Automatic create the Caffeine cache if none has been
configured or exists in the registry.",
"sourceType":
"org.apache.camel.component.caffeine.load.springboot.CaffeineLoadCacheComponentConfiguration",
"defaultValue": true
},
@@ -203,23 +201,22 @@
{
"name": "camel.component.caffeine-loadcache.expire-after-access-time",
"type": "java.lang.Integer",
- "description": "Set the expire After Access Time in case of time based
Eviction (in seconds)",
+ "description": "Specifies that each entry should be automatically
removed from the cache once a fixed duration has elapsed after the entry's
creation, the most recent replacement of its value, or its last read. Access
time is reset by all cache read and write operations. The unit is in seconds.",
"sourceType":
"org.apache.camel.component.caffeine.load.springboot.CaffeineLoadCacheComponentConfiguration",
"defaultValue": 300
},
{
"name": "camel.component.caffeine-loadcache.expire-after-write-time",
"type": "java.lang.Integer",
- "description": "Set the expire After Access Write in case of time based
Eviction (in seconds)",
+ "description": "Specifies that each entry should be automatically
removed from the cache once a fixed duration has elapsed after the entry's
creation, or the most recent replacement of its value. The unit is in seconds.",
"sourceType":
"org.apache.camel.component.caffeine.load.springboot.CaffeineLoadCacheComponentConfiguration",
"defaultValue": 300
},
{
"name": "camel.component.caffeine-loadcache.initial-capacity",
"type": "java.lang.Integer",
- "description": "Set the initial Capacity for the cache",
- "sourceType":
"org.apache.camel.component.caffeine.load.springboot.CaffeineLoadCacheComponentConfiguration",
- "defaultValue": 10000
+ "description": "Sets the minimum total size for the internal data
structures. Providing a large enough estimate at construction time avoids the
need for expensive resizing operations later, but setting this value
unnecessarily high wastes memory.",
+ "sourceType":
"org.apache.camel.component.caffeine.load.springboot.CaffeineLoadCacheComponentConfiguration"
},
{
"name": "camel.component.caffeine-loadcache.key-type",
@@ -237,9 +234,8 @@
{
"name": "camel.component.caffeine-loadcache.maximum-size",
"type": "java.lang.Integer",
- "description": "Set the maximum size for the cache",
- "sourceType":
"org.apache.camel.component.caffeine.load.springboot.CaffeineLoadCacheComponentConfiguration",
- "defaultValue": 10000
+ "description": "Specifies the maximum number of entries the cache may
contain. Note that the cache may evict an entry before this limit is exceeded
or temporarily exceed the threshold while evicting. As the cache size grows
close to the maximum, the cache evicts entries that are less likely to be used
again. For example, the cache may evict an entry because it hasn't been used
recently or very often. When size is zero, elements will be evicted immediately
after being loaded into th [...]
+ "sourceType":
"org.apache.camel.component.caffeine.load.springboot.CaffeineLoadCacheComponentConfiguration"
},
{
"name": "camel.component.caffeine-loadcache.removal-listener",
diff --git
a/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/cache/springboot/CaffeineCacheComponentConfiguration.java
b/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/cache/springboot/CaffeineCacheComponentConfiguration.java
index cabdd888d47..3c6cd86291d 100644
---
a/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/cache/springboot/CaffeineCacheComponentConfiguration.java
+++
b/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/cache/springboot/CaffeineCacheComponentConfiguration.java
@@ -48,13 +48,8 @@ public class CaffeineCacheComponentConfiguration
*/
private String action;
/**
- * To configure a CacheLoader in case of a LoadCache use. The option is a
- * com.github.benmanes.caffeine.cache.CacheLoader type.
- */
- private CacheLoader cacheLoader;
- /**
- * Configure if a cache need to be created if it does exist or can't be
- * pre-configured.
+ * Automatic create the Caffeine cache if none has been configured or
exists
+ * in the registry.
*/
private Boolean createCacheIfNotExist = true;
/**
@@ -62,19 +57,25 @@ public class CaffeineCacheComponentConfiguration
*/
private EvictionType evictionType = EvictionType.SIZE_BASED;
/**
- * Set the expire After Access Time in case of time based Eviction (in
- * seconds)
+ * Specifies that each entry should be automatically removed from the cache
+ * once a fixed duration has elapsed after the entry's creation, the most
+ * recent replacement of its value, or its last read. Access time is reset
+ * by all cache read and write operations. The unit is in seconds.
*/
private Integer expireAfterAccessTime = 300;
/**
- * Set the expire After Access Write in case of time based Eviction (in
- * seconds)
+ * Specifies that each entry should be automatically removed from the cache
+ * once a fixed duration has elapsed after the entry's creation, or the
most
+ * recent replacement of its value. The unit is in seconds.
*/
private Integer expireAfterWriteTime = 300;
/**
- * Set the initial Capacity for the cache
+ * Sets the minimum total size for the internal data structures. Providing
a
+ * large enough estimate at construction time avoids the need for expensive
+ * resizing operations later, but setting this value unnecessarily high
+ * wastes memory.
*/
- private Integer initialCapacity = 10000;
+ private Integer initialCapacity;
/**
* To configure the default action key. If a key is set in the message
* header, then the key from the header takes precedence. The option is a
@@ -93,23 +94,19 @@ public class CaffeineCacheComponentConfiguration
*/
private Boolean lazyStartProducer = false;
/**
- * Set the maximum size for the cache
- */
- private Integer maximumSize = 10000;
- /**
- * Set a specific removal Listener for the cache. The option is a
- * com.github.benmanes.caffeine.cache.RemovalListener type.
- */
- private RemovalListener removalListener;
- /**
- * Set a specific Stats Counter for the cache stats. The option is a
- * com.github.benmanes.caffeine.cache.stats.StatsCounter type.
- */
- private StatsCounter statsCounter;
- /**
- * To enable stats on the cache
+ * Specifies the maximum number of entries the cache may contain. Note that
+ * the cache may evict an entry before this limit is exceeded or
temporarily
+ * exceed the threshold while evicting. As the cache size grows close to
the
+ * maximum, the cache evicts entries that are less likely to be used again.
+ * For example, the cache may evict an entry because it hasn't been used
+ * recently or very often. When size is zero, elements will be evicted
+ * immediately after being loaded into the cache. This can be useful in
+ * testing, or to disable caching temporarily without a code change. As
+ * eviction is scheduled on the configured executor, tests may instead
+ * prefer to configure the cache to execute tasks directly on the same
+ * thread.
*/
- private Boolean statsEnabled = false;
+ private Integer maximumSize;
/**
* Whether autowiring is enabled. This is used for automatic autowiring
* options (the option must be marked as autowired) by looking up in the
@@ -119,6 +116,11 @@ public class CaffeineCacheComponentConfiguration
* etc.
*/
private Boolean autowiredEnabled = true;
+ /**
+ * To configure a CacheLoader in case of a LoadCache use. The option is a
+ * com.github.benmanes.caffeine.cache.CacheLoader type.
+ */
+ private CacheLoader cacheLoader;
/**
* Sets the global component configuration. The option is a
* org.apache.camel.component.caffeine.CaffeineConfiguration type.
@@ -128,6 +130,20 @@ public class CaffeineCacheComponentConfiguration
* The cache key type, default java.lang.Object
*/
private String keyType;
+ /**
+ * Set a specific removal Listener for the cache. The option is a
+ * com.github.benmanes.caffeine.cache.RemovalListener type.
+ */
+ private RemovalListener removalListener;
+ /**
+ * Set a specific Stats Counter for the cache stats. The option is a
+ * com.github.benmanes.caffeine.cache.stats.StatsCounter type.
+ */
+ private StatsCounter statsCounter;
+ /**
+ * To enable stats on the cache
+ */
+ private Boolean statsEnabled = false;
/**
* The cache value type, default java.lang.Object
*/
@@ -141,14 +157,6 @@ public class CaffeineCacheComponentConfiguration
this.action = action;
}
- public CacheLoader getCacheLoader() {
- return cacheLoader;
- }
-
- public void setCacheLoader(CacheLoader cacheLoader) {
- this.cacheLoader = cacheLoader;
- }
-
public Boolean getCreateCacheIfNotExist() {
return createCacheIfNotExist;
}
@@ -213,30 +221,6 @@ public class CaffeineCacheComponentConfiguration
this.maximumSize = maximumSize;
}
- public RemovalListener getRemovalListener() {
- return removalListener;
- }
-
- public void setRemovalListener(RemovalListener removalListener) {
- this.removalListener = removalListener;
- }
-
- public StatsCounter getStatsCounter() {
- return statsCounter;
- }
-
- public void setStatsCounter(StatsCounter statsCounter) {
- this.statsCounter = statsCounter;
- }
-
- public Boolean getStatsEnabled() {
- return statsEnabled;
- }
-
- public void setStatsEnabled(Boolean statsEnabled) {
- this.statsEnabled = statsEnabled;
- }
-
public Boolean getAutowiredEnabled() {
return autowiredEnabled;
}
@@ -245,6 +229,14 @@ public class CaffeineCacheComponentConfiguration
this.autowiredEnabled = autowiredEnabled;
}
+ public CacheLoader getCacheLoader() {
+ return cacheLoader;
+ }
+
+ public void setCacheLoader(CacheLoader cacheLoader) {
+ this.cacheLoader = cacheLoader;
+ }
+
public CaffeineConfiguration getConfiguration() {
return configuration;
}
@@ -261,6 +253,30 @@ public class CaffeineCacheComponentConfiguration
this.keyType = keyType;
}
+ public RemovalListener getRemovalListener() {
+ return removalListener;
+ }
+
+ public void setRemovalListener(RemovalListener removalListener) {
+ this.removalListener = removalListener;
+ }
+
+ public StatsCounter getStatsCounter() {
+ return statsCounter;
+ }
+
+ public void setStatsCounter(StatsCounter statsCounter) {
+ this.statsCounter = statsCounter;
+ }
+
+ public Boolean getStatsEnabled() {
+ return statsEnabled;
+ }
+
+ public void setStatsEnabled(Boolean statsEnabled) {
+ this.statsEnabled = statsEnabled;
+ }
+
public String getValueType() {
return valueType;
}
diff --git
a/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/cache/springboot/CaffeineCacheComponentConverter.java
b/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/cache/springboot/CaffeineCacheComponentConverter.java
index ce4462d9d85..d5d545c39fe 100644
---
a/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/cache/springboot/CaffeineCacheComponentConverter.java
+++
b/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/cache/springboot/CaffeineCacheComponentConverter.java
@@ -42,9 +42,9 @@ public class CaffeineCacheComponentConverter implements
GenericConverter {
public Set<ConvertiblePair> getConvertibleTypes() {
Set<ConvertiblePair> answer = new LinkedHashSet<>();
answer.add(new ConvertiblePair(String.class,
com.github.benmanes.caffeine.cache.CacheLoader.class));
+ answer.add(new ConvertiblePair(String.class,
org.apache.camel.component.caffeine.CaffeineConfiguration.class));
answer.add(new ConvertiblePair(String.class,
com.github.benmanes.caffeine.cache.RemovalListener.class));
answer.add(new ConvertiblePair(String.class,
com.github.benmanes.caffeine.cache.stats.StatsCounter.class));
- answer.add(new ConvertiblePair(String.class,
org.apache.camel.component.caffeine.CaffeineConfiguration.class));
return answer;
}
@@ -62,9 +62,9 @@ public class CaffeineCacheComponentConverter implements
GenericConverter {
ref = ref.startsWith("#bean:") ? ref.substring(6) : ref.substring(1);
switch (targetType.getName()) {
case "com.github.benmanes.caffeine.cache.CacheLoader": return
applicationContext.getBean(ref,
com.github.benmanes.caffeine.cache.CacheLoader.class);
+ case "org.apache.camel.component.caffeine.CaffeineConfiguration":
return applicationContext.getBean(ref,
org.apache.camel.component.caffeine.CaffeineConfiguration.class);
case "com.github.benmanes.caffeine.cache.RemovalListener": return
applicationContext.getBean(ref,
com.github.benmanes.caffeine.cache.RemovalListener.class);
case "com.github.benmanes.caffeine.cache.stats.StatsCounter":
return applicationContext.getBean(ref,
com.github.benmanes.caffeine.cache.stats.StatsCounter.class);
- case "org.apache.camel.component.caffeine.CaffeineConfiguration":
return applicationContext.getBean(ref,
org.apache.camel.component.caffeine.CaffeineConfiguration.class);
}
return null;
}
diff --git
a/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/load/springboot/CaffeineLoadCacheComponentConfiguration.java
b/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/load/springboot/CaffeineLoadCacheComponentConfiguration.java
index e01eb34b07a..5641124f454 100644
---
a/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/load/springboot/CaffeineLoadCacheComponentConfiguration.java
+++
b/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/load/springboot/CaffeineLoadCacheComponentConfiguration.java
@@ -48,13 +48,8 @@ public class CaffeineLoadCacheComponentConfiguration
*/
private String action;
/**
- * To configure a CacheLoader in case of a LoadCache use. The option is a
- * com.github.benmanes.caffeine.cache.CacheLoader type.
- */
- private CacheLoader cacheLoader;
- /**
- * Configure if a cache need to be created if it does exist or can't be
- * pre-configured.
+ * Automatic create the Caffeine cache if none has been configured or
exists
+ * in the registry.
*/
private Boolean createCacheIfNotExist = true;
/**
@@ -62,19 +57,25 @@ public class CaffeineLoadCacheComponentConfiguration
*/
private EvictionType evictionType = EvictionType.SIZE_BASED;
/**
- * Set the expire After Access Time in case of time based Eviction (in
- * seconds)
+ * Specifies that each entry should be automatically removed from the cache
+ * once a fixed duration has elapsed after the entry's creation, the most
+ * recent replacement of its value, or its last read. Access time is reset
+ * by all cache read and write operations. The unit is in seconds.
*/
private Integer expireAfterAccessTime = 300;
/**
- * Set the expire After Access Write in case of time based Eviction (in
- * seconds)
+ * Specifies that each entry should be automatically removed from the cache
+ * once a fixed duration has elapsed after the entry's creation, or the
most
+ * recent replacement of its value. The unit is in seconds.
*/
private Integer expireAfterWriteTime = 300;
/**
- * Set the initial Capacity for the cache
+ * Sets the minimum total size for the internal data structures. Providing
a
+ * large enough estimate at construction time avoids the need for expensive
+ * resizing operations later, but setting this value unnecessarily high
+ * wastes memory.
*/
- private Integer initialCapacity = 10000;
+ private Integer initialCapacity;
/**
* To configure the default action key. If a key is set in the message
* header, then the key from the header takes precedence. The option is a
@@ -93,23 +94,19 @@ public class CaffeineLoadCacheComponentConfiguration
*/
private Boolean lazyStartProducer = false;
/**
- * Set the maximum size for the cache
- */
- private Integer maximumSize = 10000;
- /**
- * Set a specific removal Listener for the cache. The option is a
- * com.github.benmanes.caffeine.cache.RemovalListener type.
- */
- private RemovalListener removalListener;
- /**
- * Set a specific Stats Counter for the cache stats. The option is a
- * com.github.benmanes.caffeine.cache.stats.StatsCounter type.
- */
- private StatsCounter statsCounter;
- /**
- * To enable stats on the cache
+ * Specifies the maximum number of entries the cache may contain. Note that
+ * the cache may evict an entry before this limit is exceeded or
temporarily
+ * exceed the threshold while evicting. As the cache size grows close to
the
+ * maximum, the cache evicts entries that are less likely to be used again.
+ * For example, the cache may evict an entry because it hasn't been used
+ * recently or very often. When size is zero, elements will be evicted
+ * immediately after being loaded into the cache. This can be useful in
+ * testing, or to disable caching temporarily without a code change. As
+ * eviction is scheduled on the configured executor, tests may instead
+ * prefer to configure the cache to execute tasks directly on the same
+ * thread.
*/
- private Boolean statsEnabled = false;
+ private Integer maximumSize;
/**
* Whether autowiring is enabled. This is used for automatic autowiring
* options (the option must be marked as autowired) by looking up in the
@@ -119,6 +116,11 @@ public class CaffeineLoadCacheComponentConfiguration
* etc.
*/
private Boolean autowiredEnabled = true;
+ /**
+ * To configure a CacheLoader in case of a LoadCache use. The option is a
+ * com.github.benmanes.caffeine.cache.CacheLoader type.
+ */
+ private CacheLoader cacheLoader;
/**
* Sets the global component configuration. The option is a
* org.apache.camel.component.caffeine.CaffeineConfiguration type.
@@ -128,6 +130,20 @@ public class CaffeineLoadCacheComponentConfiguration
* The cache key type, default java.lang.Object
*/
private String keyType;
+ /**
+ * Set a specific removal Listener for the cache. The option is a
+ * com.github.benmanes.caffeine.cache.RemovalListener type.
+ */
+ private RemovalListener removalListener;
+ /**
+ * Set a specific Stats Counter for the cache stats. The option is a
+ * com.github.benmanes.caffeine.cache.stats.StatsCounter type.
+ */
+ private StatsCounter statsCounter;
+ /**
+ * To enable stats on the cache
+ */
+ private Boolean statsEnabled = false;
/**
* The cache value type, default java.lang.Object
*/
@@ -141,14 +157,6 @@ public class CaffeineLoadCacheComponentConfiguration
this.action = action;
}
- public CacheLoader getCacheLoader() {
- return cacheLoader;
- }
-
- public void setCacheLoader(CacheLoader cacheLoader) {
- this.cacheLoader = cacheLoader;
- }
-
public Boolean getCreateCacheIfNotExist() {
return createCacheIfNotExist;
}
@@ -213,30 +221,6 @@ public class CaffeineLoadCacheComponentConfiguration
this.maximumSize = maximumSize;
}
- public RemovalListener getRemovalListener() {
- return removalListener;
- }
-
- public void setRemovalListener(RemovalListener removalListener) {
- this.removalListener = removalListener;
- }
-
- public StatsCounter getStatsCounter() {
- return statsCounter;
- }
-
- public void setStatsCounter(StatsCounter statsCounter) {
- this.statsCounter = statsCounter;
- }
-
- public Boolean getStatsEnabled() {
- return statsEnabled;
- }
-
- public void setStatsEnabled(Boolean statsEnabled) {
- this.statsEnabled = statsEnabled;
- }
-
public Boolean getAutowiredEnabled() {
return autowiredEnabled;
}
@@ -245,6 +229,14 @@ public class CaffeineLoadCacheComponentConfiguration
this.autowiredEnabled = autowiredEnabled;
}
+ public CacheLoader getCacheLoader() {
+ return cacheLoader;
+ }
+
+ public void setCacheLoader(CacheLoader cacheLoader) {
+ this.cacheLoader = cacheLoader;
+ }
+
public CaffeineConfiguration getConfiguration() {
return configuration;
}
@@ -261,6 +253,30 @@ public class CaffeineLoadCacheComponentConfiguration
this.keyType = keyType;
}
+ public RemovalListener getRemovalListener() {
+ return removalListener;
+ }
+
+ public void setRemovalListener(RemovalListener removalListener) {
+ this.removalListener = removalListener;
+ }
+
+ public StatsCounter getStatsCounter() {
+ return statsCounter;
+ }
+
+ public void setStatsCounter(StatsCounter statsCounter) {
+ this.statsCounter = statsCounter;
+ }
+
+ public Boolean getStatsEnabled() {
+ return statsEnabled;
+ }
+
+ public void setStatsEnabled(Boolean statsEnabled) {
+ this.statsEnabled = statsEnabled;
+ }
+
public String getValueType() {
return valueType;
}
diff --git
a/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/load/springboot/CaffeineLoadCacheComponentConverter.java
b/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/load/springboot/CaffeineLoadCacheComponentConverter.java
index 7ff6ba86d1a..a863c5676b9 100644
---
a/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/load/springboot/CaffeineLoadCacheComponentConverter.java
+++
b/components-starter/camel-caffeine-starter/src/main/java/org/apache/camel/component/caffeine/load/springboot/CaffeineLoadCacheComponentConverter.java
@@ -42,9 +42,9 @@ public class CaffeineLoadCacheComponentConverter implements
GenericConverter {
public Set<ConvertiblePair> getConvertibleTypes() {
Set<ConvertiblePair> answer = new LinkedHashSet<>();
answer.add(new ConvertiblePair(String.class,
com.github.benmanes.caffeine.cache.CacheLoader.class));
+ answer.add(new ConvertiblePair(String.class,
org.apache.camel.component.caffeine.CaffeineConfiguration.class));
answer.add(new ConvertiblePair(String.class,
com.github.benmanes.caffeine.cache.RemovalListener.class));
answer.add(new ConvertiblePair(String.class,
com.github.benmanes.caffeine.cache.stats.StatsCounter.class));
- answer.add(new ConvertiblePair(String.class,
org.apache.camel.component.caffeine.CaffeineConfiguration.class));
return answer;
}
@@ -62,9 +62,9 @@ public class CaffeineLoadCacheComponentConverter implements
GenericConverter {
ref = ref.startsWith("#bean:") ? ref.substring(6) : ref.substring(1);
switch (targetType.getName()) {
case "com.github.benmanes.caffeine.cache.CacheLoader": return
applicationContext.getBean(ref,
com.github.benmanes.caffeine.cache.CacheLoader.class);
+ case "org.apache.camel.component.caffeine.CaffeineConfiguration":
return applicationContext.getBean(ref,
org.apache.camel.component.caffeine.CaffeineConfiguration.class);
case "com.github.benmanes.caffeine.cache.RemovalListener": return
applicationContext.getBean(ref,
com.github.benmanes.caffeine.cache.RemovalListener.class);
case "com.github.benmanes.caffeine.cache.stats.StatsCounter":
return applicationContext.getBean(ref,
com.github.benmanes.caffeine.cache.stats.StatsCounter.class);
- case "org.apache.camel.component.caffeine.CaffeineConfiguration":
return applicationContext.getBean(ref,
org.apache.camel.component.caffeine.CaffeineConfiguration.class);
}
return null;
}
diff --git a/tooling/camel-spring-boot-dependencies/pom.xml
b/tooling/camel-spring-boot-dependencies/pom.xml
index 6e7057ea5cc..1f6ed74f0d3 100644
--- a/tooling/camel-spring-boot-dependencies/pom.xml
+++ b/tooling/camel-spring-boot-dependencies/pom.xml
@@ -4926,11 +4926,6 @@
<artifactId>stax-api</artifactId>
<version>1.0.1</version>
</dependency>
- <dependency>
- <groupId>xalan</groupId>
- <artifactId>xalan</artifactId>
- <version>2.7.2</version>
- </dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>