Class LocalObjectCache
- java.lang.Object
-
- com.evolveum.midpoint.util.caching.AbstractThreadLocalCache
-
- com.evolveum.midpoint.repo.cache.local.LocalObjectCache
-
public class LocalObjectCache extends AbstractThreadLocalCache
Thread-local cache for storing objects.
-
-
Constructor Summary
Constructors Constructor Description LocalObjectCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
void
dumpContent(String threadName)
<T extends ObjectType>
PrismObject<T>get(String oid)
protected int
getSize()
void
put(PrismObject<? extends ObjectType> object)
void
put(String oid, PrismObject<? extends ObjectType> object)
void
remove(String oid)
-
Methods inherited from class com.evolveum.midpoint.util.caching.AbstractThreadLocalCache
debugDump, destroy, dumpContent, enter, exists, exit, getConfiguration, getConfiguration, getEntryCount, getTotalSize, isAvailable, registerHit, registerMiss, registerPass, setConfiguration, supportsObjectType, toString
-
-
-
-
Method Detail
-
get
public <T extends ObjectType> PrismObject<T> get(String oid)
-
put
public void put(PrismObject<? extends ObjectType> object)
-
put
public void put(String oid, PrismObject<? extends ObjectType> object)
-
remove
public void remove(String oid)
-
description
public String description()
- Specified by:
description
in classAbstractThreadLocalCache
-
getSize
protected int getSize()
- Specified by:
getSize
in classAbstractThreadLocalCache
-
dumpContent
public void dumpContent(String threadName)
- Specified by:
dumpContent
in classAbstractThreadLocalCache
-
-