91.3. Spring Boot Auto-Configuration


组件支持 25 个选项,如下所列。

Expand
Name描述默认值类型

camel.component.ehcache.cache-configuration

用于创建缓存的默认缓存配置。选项是一个 org.ehcache.config.CacheConfiguration<?,?> 类型。

 

字符串

camel.component.ehcache.cache-configuration-uri

指向 Ehcache XML 配置文件位置的 URI

 

字符串

camel.component.ehcache.cache-manager

缓存管理器。选项是 org.ehcache.CacheManager 类型。

 

字符串

camel.component.ehcache.cache-manager-configuration

缓存管理器配置。选项是 org.ehcache.config.Configuration 类型。

 

字符串

camel.component.ehcache.caches-configurations

用于创建缓存的缓存配置映射。

 

Map

camel.component.ehcache.configuration.action

配置默认缓存操作。如果在消息标头中设置了操作,则标题中的操作将具有优先权。

 

字符串

camel.component.ehcache.configuration.cache-manager

缓存管理器

 

CacheManager

camel.component.ehcache.configuration.cache-manager-configuration

缓存管理器配置

 

配置

camel.component.ehcache.configuration.configuration

用于创建缓存的默认缓存配置。

 

CacheConfiguration

camel.component.ehcache.configuration.configuration-uri

指向 Ehcache XML 配置文件位置的 URI

 

字符串

camel.component.ehcache.configuration.configurations

用于创建缓存的缓存配置映射。

 

Map

camel.component.ehcache.configuration.create-cache-if-not-exist

如果缓存存在或无法预先配置,则配置是否需要创建缓存。

true

布尔值

camel.component.ehcache.configuration.event-firing

设置交付模式(同步、异步)

 

EventFiring

camel.component.ehcache.configuration.event-ordering

设置交付模式(排序、未排序)

 

EventOrdering

camel.component.ehcache.configuration.event-types

设置要侦听的事件类型

 

Set

camel.component.ehcache.configuration.key

配置默认操作密钥。如果在消息标头中设置了键,则标题中的键具有优先权。

 

对象

camel.component.ehcache.configuration.key-type

缓存密钥类型,默认 java.lang.Object

java.lang.Object

字符串

camel.component.ehcache.configuration.value-type

缓存值类型,默认为 java.lang.Object

java.lang.Object

字符串

camel.component.ehcache.customizer.cache-configuration.enabled

启用或禁用 cache-configuration 自定义器。

true

布尔值

camel.component.ehcache.customizer.cache-configuration.mode

配置(如果已添加了缓存配置),或者必须替换已在组件上配置的缓存配置。

 

CacheConfiguration CustomizerConfiguration$ Mode

camel.component.ehcache.customizer.cache-manager.enabled

启用或禁用 cache-manager customizer。

true

布尔值

camel.component.ehcache.customizer.cache-manager.override

配置组件上最终设置的缓存管理器是否应被自定义器覆盖。

false

布尔值

camel.component.ehcache.enabled

启用 ehcache 组件

true

布尔值

camel.component.ehcache.resolve-property-placeholders

组件是否应在启动时解析属性占位符。只有 String 类型的属性可以使用属性占位符。

true

布尔值

camel.component.ehcache.configuration.config-uri (DEPRECATED - Use set configurationUri (String) instead.)

指向 Ehcache XML 配置文件位置的 URI

 

字符串

91.3.1. Message Headers Camel

Expand
标头类型描述

CamelEhcacheAction

字符串

在缓存中执行 perfomed 的操作,有效选项有:

* CLEAR * PUT * PUT_ALL * PUT_IF_ABSENT * GET * GET_ALL * REMOVE * REMOVE_ALL * REPLACE

CamelEhcacheActionHasResult

布尔值

如果操作的结果为 true

CamelEhcacheActionSucceeded

布尔值

如果 actionsuccedded 为 true

CamelEhcacheKey

对象

用于操作的缓存密钥

CamelEhcacheKeys

set<Object>

使用的密钥列表

* PUT_ALL * GET_ALL * REMOVE_ALL

CamelEhcacheValue

对象

放入缓存或操作结果的值

CamelEhcacheOldValue

对象

对于 PUT_IF_ABSENT 或用于与 REPLACE 等操作进行比较的对象,与键关联的旧值(如 PUT_IF_ABSENT)或对象

CamelEhcacheEventType

EventType

接收的事件类型

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat