public abstract class OAbstractRecordCache extends Object
ORecordCache
implementation passed
at creation time leaving only DB specific functionalityModifier and Type | Field and Description |
---|---|
protected int |
excludedCluster |
protected String |
profilerMetadataPrefix |
protected String |
profilerPrefix |
protected ORecordCache |
underlying |
Constructor and Description |
---|
OAbstractRecordCache(ORecordCache impl)
Create cache backed by given implementation
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the entire cache by removing all the entries
|
void |
deleteRecord(ORID rid)
Remove record entry
|
void |
freeCluster(int cid)
Remove all records belonging to specified cluster
|
ORecord |
freeRecord(ORID rid)
Remove record with specified identifier
|
int |
getSize()
Total number of cached entries
|
boolean |
isEnabled()
Tell whether cache is enabled
|
void |
setEnable(boolean enable)
Switch cache state between enabled and disabled
|
void |
shutdown()
All operations running at cache destruction stage
|
void |
startup()
All operations running at cache initialization stage
|
protected ORecordCache underlying
protected String profilerPrefix
protected String profilerMetadataPrefix
protected int excludedCluster
public OAbstractRecordCache(ORecordCache impl)
impl
- actual implementation of cachepublic boolean isEnabled()
true
if cache enabled at call time, otherwise - false
public void setEnable(boolean enable)
enable
- pass true
to enable, otherwise - false
public ORecord freeRecord(ORID rid)
rid
- unique identifier of recordnull
public void freeCluster(int cid)
cid
- identifier of clusterpublic void deleteRecord(ORID rid)
rid
- unique record identifierpublic void clear()
public int getSize()
public void startup()
public void shutdown()
Copyright © 2009–2020 OrientDB. All rights reserved.