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, waitclearRecords, get, put, removepublic OAbstractMapCache(T cache)
public void startup()
ORecordCachestartup in interface ORecordCachepublic void shutdown()
ORecordCacheshutdown in interface ORecordCachepublic void clear()
ORecordCacheclear in interface ORecordCachepublic int size()
ORecordCachesize in interface ORecordCachepublic boolean isEnabled()
ORecordCacheisEnabled in interface ORecordCachetrue if cache enabled at call time, otherwise - falsepublic boolean disable()
ORecordCachedisable in interface ORecordCachetrue - if disabled, false - otherwise (already disabled)public boolean enable()
ORecordCacheenable in interface ORecordCachetrue - if enabled, false - otherwise (already enabled)public Collection<ORID> keys()
ORecordCachekeys in interface ORecordCacheCopyright © 2009–2025 OrientDB. All rights reserved.