K
- validator keypublic interface ValidatorRegistry<K> extends Map<K,Validator>, StaticService
org.apache.camel.support.LRUCache
and may evict validators which hasn't been requested recentlyModifier and Type | Method and Description |
---|---|
void |
cleanUp()
Cleanup the cache (purging stale entries)
|
int |
dynamicSize()
Number of validators in the dynamic registry
|
int |
getMaximumCacheSize()
Maximum number of entries to store in the dynamic registry
|
boolean |
isDynamic(DataType type)
Whether the given
Validator is stored in the dynamic cache |
boolean |
isStatic(DataType type)
Whether the given
Validator is stored in the static cache |
void |
purge()
Purges the cache (removes validators from the dynamic cache)
|
Validator |
resolveValidator(K key)
Lookup a
Validator in the registry which supports the validation for
the data type represented by the key. |
int |
staticSize()
Number of validators 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
Validator resolveValidator(K key)
Validator
in the registry which supports the validation for
the data type represented by the key.key
- a key represents the data typeValidator
if matched, otherwise nullint staticSize()
int dynamicSize()
int getMaximumCacheSize()
void purge()
boolean isStatic(DataType type)
Validator
is stored in the static cachetype
- the data typeboolean isDynamic(DataType type)
Validator
is stored in the dynamic cachetype
- the data typevoid cleanUp()
Apache Camel