55.3. Spring Boot Auto-Configuration
组件支持 17 个选项,它们如下所列。
Name | 描述 | 默认 | 类型 |
---|---|---|---|
camel.component.cache.cache-manager-factory | 使用给定的 CacheManagerFactory 创建 CacheManager。默认情况下,使用 DefaultCacheManagerFactory。选项是一个 org.apache.camel.component.cache.CacheManagerFactory 类型。 | 字符串 | |
camel.component.cache.configuration-file | 设置 ehcache.xml 文件的位置,以便从 classpath 或文件系统加载。默认情况下,该文件从 classpath:ehcache.xml 加载 | classpath:ehcache.xml | 字符串 |
camel.component.cache.configuration.cache-loader-registry | 使用 CacheLoaderRegistry 配置缓存加载程序 | CacheLoaderRegistry | |
camel.component.cache.configuration.cache-name | 缓存的名称 | 字符串 | |
camel.component.cache.configuration.disk-expiry-thread-interval-seconds | 运行磁盘到期线程之间的秒数。 | Long | |
camel.component.cache.configuration.disk-persistent | 磁盘存储是否会在应用程序重启之间保留。 | false | 布尔值 |
camel.component.cache.configuration.eternal | 设定元素是否声音。如果发往,则忽略超时,且元素永远不会过期。 | false | 布尔值 |
camel.component.cache.configuration.event-listener-registry | 使用 CacheEventListenerRegistry 配置事件监听程序 | CacheEventListener Registry | |
camel.component.cache.configuration.max-elements-in-memory | 在内存中保存的元素数量。 | 1000 | 整数 |
camel.component.cache.configuration.memory-store-eviction-policy | 达到内存中最多元素数时要使用的驱除策略。策略会定义要删除的元素。LRU - Lest Recently Used LFU - Lest Frently Used FIFO - First In First Out | MemoryStoreEviction Policy | |
camel.component.cache.configuration.object-cache | 是否打开允许将非序列化对象存储在缓存中。如果这个选项被启用,则无法对磁盘启用溢出。 | false | 布尔值 |
camel.component.cache.configuration.overflow-to-disk | 指定缓存是否为磁盘溢出 | true | 布尔值 |
camel.component.cache.configuration.time-to-idle-seconds | 元素到期前访问之间的最大时间 | 300 | Long |
camel.component.cache.configuration.time-to-live-seconds | 创建时间和何时元素之间的最长时间。仅当元素不是框架时,才会使用 | 300 | Long |
camel.component.cache.enabled | 启用缓存组件 | true | 布尔值 |
camel.component.cache.resolve-property-placeholders | 启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。 | true | 布尔值 |
camel.component.cache.configuration.disk-store-path | 此参数将被忽略。CacheManager 使用 setter 注入来设置它。 | 字符串 |