K
- transformer keypublic interface TransformerRegistry<K> extends Map<K,Transformer>, StaticService
org.apache.camel.support.LRUCache
and may evict transformers
which hasn't been requested recentlyModifier and Type | Method and Description |
---|---|
void |
cleanUp()
Cleanup the cache (purging stale entries)
|
int |
dynamicSize()
Number of transformers in the dynamic registry
|
int |
getMaximumCacheSize()
Maximum number of entries to store in the dynamic registry
|
boolean |
isDynamic(DataType from,
DataType to)
Whether the given
Transformer is stored in the dynamic cache |
boolean |
isDynamic(String scheme)
Whether the given transformer is stored in the dynamic cache
|
boolean |
isStatic(DataType from,
DataType to)
Whether the given transformer is stored in the static cache
|
boolean |
isStatic(String scheme)
Whether the given transformer is stored in the static cache
|
void |
purge()
Purges the cache (removes transformers from the dynamic cache)
|
Transformer |
resolveTransformer(K key)
Lookup a
Transformer in the registry which supports the transformation for the data types represented by
the key. |
int |
staticSize()
Number of transformers in the static registry.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Transformer resolveTransformer(K key)
Transformer
in the registry which supports the transformation for the data types represented by
the key.key
- a key represents the from/to data types to transformTransformer
if matched, otherwise nullint staticSize()
int dynamicSize()
int getMaximumCacheSize()
void purge()
boolean isStatic(String scheme)
scheme
- the scheme supported by this transformerboolean isStatic(DataType from, DataType to)
from
- 'from' data typeto
- 'to' data typeboolean isDynamic(String scheme)
scheme
- the scheme supported by this transformerboolean isDynamic(DataType from, DataType to)
Transformer
is stored in the dynamic cachefrom
- 'from' data typeto
- 'to' data typevoid cleanUp()
Apache Camel