Class ORecordCacheWeakRefs
java.lang.Object
com.orientechnologies.orient.core.cache.OAbstractMapCache<WeakHashMap<ORID,WeakReference<ORecord>>>
com.orientechnologies.orient.core.cache.ORecordCacheWeakRefs
- All Implemented Interfaces:
ORecordCache
public class ORecordCacheWeakRefs
extends OAbstractMapCache<WeakHashMap<ORID,WeakReference<ORecord>>>
implements ORecordCache
- Author:
- Artem Orobets (enisher-at-gmail.com)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.cache.OAbstractMapCache
cache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLook up for record in cache by it's identifierPush record to cache.Remove record with specified identifiervoidshutdown()All operations running at cache destruction stageMethods inherited from class com.orientechnologies.orient.core.cache.OAbstractMapCache
clear, disable, enable, isEnabled, keys, size, startup
-
Constructor Details
-
ORecordCacheWeakRefs
public ORecordCacheWeakRefs()
-
-
Method Details
-
get
Description copied from interface:ORecordCacheLook up for record in cache by it's identifier- Specified by:
getin interfaceORecordCache- Parameters:
rid- unique identifier of record- Returns:
- record stored in cache if any, otherwise -
null
-
put
Description copied from interface:ORecordCachePush record to cache. Identifier of record used as access key- Specified by:
putin interfaceORecordCache- Parameters:
record- record that should be cached- Returns:
- previous version of record
-
remove
Description copied from interface:ORecordCacheRemove record with specified identifier- Specified by:
removein interfaceORecordCache- Parameters:
rid- unique identifier of record- Returns:
- record stored in cache if any, otherwise -
null
-
clearRecords
public void clearRecords()- Specified by:
clearRecordsin interfaceORecordCache
-
shutdown
public void shutdown()Description copied from interface:ORecordCacheAll operations running at cache destruction stage- Specified by:
shutdownin interfaceORecordCache- Overrides:
shutdownin classOAbstractMapCache<WeakHashMap<ORID,WeakReference<ORecord>>>
-