public class ORecordCacheSoftRefs extends OAbstractMapCache<OSoftRefsHashMap<ORID,ORecord>> implements ORecordCache
cache
Constructor and Description |
---|
ORecordCacheSoftRefs() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all records from cache
|
ORecord |
get(ORID rid)
Look up for record in cache by it's identifier
|
ORecord |
put(ORecord record)
Push record to cache.
|
ORecord |
remove(ORID rid)
Remove record with specified identifier
|
void |
shutdown()
All operations running at cache destruction stage
|
disable, enable, isEnabled, keys, size, startup
public ORecord get(ORID rid)
ORecordCache
get
in interface ORecordCache
rid
- unique identifier of recordnull
public ORecord put(ORecord record)
ORecordCache
put
in interface ORecordCache
record
- record that should be cachedpublic ORecord remove(ORID rid)
ORecordCache
remove
in interface ORecordCache
rid
- unique identifier of recordnull
public void shutdown()
ORecordCache
shutdown
in interface ORecordCache
shutdown
in class OAbstractMapCache<OSoftRefsHashMap<ORID,ORecord>>
public void clear()
ORecordCache
clear
in interface ORecordCache
clear
in class OAbstractMapCache<OSoftRefsHashMap<ORID,ORecord>>
Copyright © 2009–2020 OrientDB. All rights reserved.