|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
static interface Evictor.DbCache
Caches DatabaseImpls to reduce DbTree.getDb overhead. Implemented differently by PrivateEvictor and SharedEvictor. [#21330]
Method Summary | |
---|---|
DatabaseImpl |
getDb(EnvironmentImpl envImpl,
DatabaseId dbId)
Calls DbTree.getDb for the given environment and database ID, and caches the result to optimize multiple calls for the same DB. |
void |
releaseDbs()
Calls DbTree.releaseDb for cached DBs, and clears the cache. |
Method Detail |
---|
DatabaseImpl getDb(EnvironmentImpl envImpl, DatabaseId dbId)
envImpl
- identifies which environment the dbId parameter
belongs to. For PrivateEvictor, it is the same as the
Evictor.envImpl field.dbId
- is the DB to get.void releaseDbs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |