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

缓存管理器配置

 

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

设置交付模式(ordered、unordered)

 

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 自定义器。

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 - 使用 set configurationUri (String) 替代

指向 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 等操作进行比较

CamelEhcacheEventType

EventType

接收的事件类型

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat