com.sleepycat.je.evictor
Interface Evictor.DbCache

Enclosing class:
Evictor

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

getDb

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.

Parameters:
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.

releaseDbs

void releaseDbs()
Calls DbTree.releaseDb for cached DBs, and clears the cache.



Copyright (c) 2004-2012 Oracle. All rights reserved.