public abstract class OAbstractMapCache<T extends Map<ORID,?>> extends Object implements ORecordCache
Constructor and Description |
---|
OAbstractMapCache(T cache) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all records from cache
|
boolean |
disable()
Disable cache.
|
boolean |
enable()
Enable cache
|
boolean |
isEnabled()
Tell whether cache is enabled
|
Collection<ORID> |
keys()
Keys of all stored in cache records
|
void |
shutdown()
All operations running at cache destruction stage
|
int |
size()
Total number of stored records
|
void |
startup()
All operations running at cache initialization stage
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, put, remove
public OAbstractMapCache(T cache)
public void startup()
ORecordCache
startup
in interface ORecordCache
public void shutdown()
ORecordCache
shutdown
in interface ORecordCache
public void clear()
ORecordCache
clear
in interface ORecordCache
public int size()
ORecordCache
size
in interface ORecordCache
public boolean isEnabled()
ORecordCache
isEnabled
in interface ORecordCache
true
if cache enabled at call time, otherwise - false
public boolean disable()
ORecordCache
disable
in interface ORecordCache
true
- if disabled, false
- otherwise (already disabled)public boolean enable()
ORecordCache
enable
in interface ORecordCache
true
- if enabled, false
- otherwise (already enabled)public Collection<ORID> keys()
ORecordCache
keys
in interface ORecordCache
Copyright © 2009–2020 OrientDB. All rights reserved.