55.3. Spring Boot Auto-Configuration

コンポーネントは、以下に記載される 17 のオプションをサポートします。

名前説明デフォルトタイプ

camel.component.cache.cache-manager-factory

指定された CacheManagerFactory を使用して CacheManager を作成します。デフォルトでは、DefaultCacheManagerFactory が使用されます。オプションは org.apache.camel.component.cache.CacheManagerFactory タイプです。

 

String

camel.component.cache.configuration-file

クラスパスまたはファイルシステムからロードする ehcache.xml ファイルのロケーションを設定します。デフォルトでは、ファイルは classpath:ehcache.xml からロードされます

classpath:ehcache.xml

String

camel.component.cache.configuration.cache-loader-registry

CacheLoaderRegistry を使用してキャッシュローダーを設定するには

 

CacheLoaderRegistry

camel.component.cache.configuration.cache-name

キャッシュの名前

 

String

camel.component.cache.configuration.disk-expiry-thread-interval-seconds

ディスク期限切れスレッドの実行間隔の秒数。

 

Long

camel.component.cache.configuration.disk-persistent

アプリケーションの再起動間でディスクストアが保持されるかどうか。

false

Boolean

camel.component.cache.configuration.eternal

要素が永続的かどうかを設定します。永続的である場合、タイムアウトは無視され、要素は期限切れになりません。

false

Boolean

camel.component.cache.configuration.event-listener-registry

CacheEventListenerRegistry を使用してイベントリスナーを設定するには

 

CacheEventListener Registry

camel.component.cache.configuration.max-elements-in-memory

メモリー内の定義済みキャッシュに格納できる要素の数。

1000

Integer

camel.component.cache.configuration.memory-store-eviction-policy

メモリー内の要素が最大数に達したときに使用するエビクションストラテジー。ストラテジーは、削除する要素を定義します。LRU - 最近使用されないようにする LFU - 頻繁に使用されないようにする FIFO - 先入れ先出し

 

MemoryStoreEviction Policy

camel.component.cache.configuration.object-cache

シリアル化できないオブジェクトをキャッシュに保存できるようにするかどうか。このオプションが有効になっている場合、ディスクへのオーバーフローも有効にできません。

false

Boolean

camel.component.cache.configuration.overflow-to-disk

キャッシュがディスクにオーバーフローする可能性があるかどうかを指定します

true

Boolean

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

Boolean

camel.component.cache.resolve-property-placeholders

起動時にコンポーネントがプロパティープレースホルダーを解決するかどうか。String タイプのプロパティーのみがプロパティープレースホルダーを使用できます。

true

Boolean

camel.component.cache.configuration.disk-store-path

このパラメーターは無視されます。CacheManager は、setter インジェクションを使用して設定します。

 

String