public class CachingBOLoaderLRUStrategy extends java.lang.Object implements CachingBOLoaderUpdateStrategyI
| Modifier and Type | Class and Description |
|---|---|
static class |
CachingBOLoaderLRUStrategy.ClassLimitedLRUContainer |
| Constructor and Description |
|---|
CachingBOLoaderLRUStrategy(CachingBOLoader _boLoader,
java.lang.Class[] _keepClasses,
int[] _maxKeeps,
int _interval) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<EntityI> |
getMonitoredEntities()
Returns the entity types to register with the database change listener.
|
boolean |
isEagerLoadingEnabled()
Determines whether newly created server objects matching the monitored entities
should be eagerly loaded into the cache even if not previously cached.
|
boolean |
isMonitoredClass(java.lang.Class<? extends BOI> clazz)
Evaluates whether a specific BO class requires cache synchronization.
|
CachingBOLoaderRegistration |
registerKeepClass(java.lang.Class c,
int maxKeep) |
CachingBOLoaderRegistration |
registerKeepClasses(java.lang.Class[] cs,
int maxKeep) |
void |
unregisterKeepClass(CachingBOLoaderRegistration r) |
void |
unregisterKeepClasses(CachingBOLoaderRegistration[] rr) |
void |
unregisterKeepClassesProtected(CachingBOLoaderRegistration[] rr) |
public CachingBOLoaderLRUStrategy(CachingBOLoader _boLoader, java.lang.Class[] _keepClasses, int[] _maxKeeps, int _interval)
public java.util.Set<EntityI> getMonitoredEntities()
CachingBOLoaderUpdateStrategyIOnly changes to business objects belonging to these entities trigger update evaluation.
getMonitoredEntities in interface CachingBOLoaderUpdateStrategyIpublic boolean isMonitoredClass(java.lang.Class<? extends BOI> clazz)
CachingBOLoaderUpdateStrategyIActs as a concrete type filter for polymorphic entities returned by CachingBOLoaderUpdateStrategyI.getMonitoredEntities().
Called only for classes whose entity definition is included in CachingBOLoaderUpdateStrategyI.getMonitoredEntities().
isMonitoredClass in interface CachingBOLoaderUpdateStrategyIclazz - concrete BO class to evaluate; non-nullpublic boolean isEagerLoadingEnabled()
If false, updates are applied strictly to objects already resident in the cache or linked via currently unlazied many-relations.
Returns false; this strategy restricts cache synchronization exclusively
to already-cached objects, because adding changed BOs will mess with our LRU strategy
the moment they're frapped.
isEagerLoadingEnabled in interface CachingBOLoaderUpdateStrategyIfalsepublic CachingBOLoaderRegistration registerKeepClass(java.lang.Class c, int maxKeep)
public CachingBOLoaderRegistration registerKeepClasses(java.lang.Class[] cs, int maxKeep)
public void unregisterKeepClass(CachingBOLoaderRegistration r)
public void unregisterKeepClasses(CachingBOLoaderRegistration[] rr)
public void unregisterKeepClassesProtected(CachingBOLoaderRegistration[] rr)
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.