public class DefinitionContextAgeable extends DefinitionContextStandard implements DefinitionMgrListener
DefinitionContext
class in which the MOM cache supports ageing.
In this class (as in its superclass), no state is shared between
the MOM cache and MOM parser functionality, and the latter
is delegated to a MOMParser
provided to the constructor.
(The client can choose MDS vs non-MDS versions
of the MOMParser
).
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
USE_OPER_FIND |
static java.lang.String |
USE_OPER_INSERT |
static java.lang.String |
USE_OPER_UNRETIRE |
mDefObjCount
Modifier and Type | Method and Description |
---|---|
void |
dumpDefObjInfo(DefinitionManager manager,
int index,
java.lang.Object key,
DefinitionObjectInfo defObjInfo,
boolean forUseChain,
java.io.PrintWriter out) |
void |
objectUseUpdated(DefinitionManager manager,
DefinitionContext defCtx,
java.lang.String oper,
DefinitionObjectInfo defObjInfo) |
void |
retireLeastRecentlyUsed(int numToRetire)
Retires the specified number of least recently used non-retired
ageable metaobjects in the MOM cache.
|
boolean |
setDefCachePolicy(int numStronglyHeldUpperLimit,
boolean manageLRU,
boolean unretireRecentlyUsed,
boolean useSoftRef) |
getDiagnosticInfo, setDiagnosticInfo
public static final java.lang.String USE_OPER_INSERT
public static final java.lang.String USE_OPER_FIND
public static final java.lang.String USE_OPER_UNRETIRE
public boolean setDefCachePolicy(int numStronglyHeldUpperLimit, boolean manageLRU, boolean unretireRecentlyUsed, boolean useSoftRef)
public void retireLeastRecentlyUsed(int numToRetire)
DefinitionContext
retireLeastRecentlyUsed
in class DefinitionContext
public void objectUseUpdated(DefinitionManager manager, DefinitionContext defCtx, java.lang.String oper, DefinitionObjectInfo defObjInfo)
objectUseUpdated
in interface DefinitionMgrListener
public void dumpDefObjInfo(DefinitionManager manager, int index, java.lang.Object key, DefinitionObjectInfo defObjInfo, boolean forUseChain, java.io.PrintWriter out)
dumpDefObjInfo
in interface DefinitionMgrListener