public abstract class SuperKeyedRegistry<K,V> extends Object
getSuperKeys(Object)
method. The registry is thread safe and is optimized for lookups. A
concurrent cache is dynamically updated when a value is retrieved from a super entry. The cache is removed each time
a modification is made on the registry using put(Object, Object)
or remove(Object)
methods. Thus,
for maximum performance you need to avoid modifying the registry after lookups were done: at application startup
build the registry, at runtime perform lookups, at shutdown remove entries. The root key is passed in the constructor
and is used to stop looking in super entries.Constructor and Description |
---|
SuperKeyedRegistry() |
Copyright © 2015 Nuxeo SA. All rights reserved.