com.sleepycat.je.dbi
Class MemoryBudget.Totals

java.lang.Object
  extended by com.sleepycat.je.dbi.MemoryBudget.Totals
Enclosing class:
MemoryBudget

public abstract static class MemoryBudget.Totals
extends Object

Common base class for shared and private totals. This abstraction allows most other classes to be unaware of whether we're using a SharedEvictor or PrivateEvictor.


Field Summary
(package private)  long maxMemory
           
 
Method Summary
abstract  long getCacheUsage()
           
 long getCriticalThreshold()
           
 long getMaxMemory()
           
(package private) abstract  boolean isSharedCache()
           
(package private) abstract  boolean updateCacheUsage(long increment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxMemory

long maxMemory
Method Detail

getMaxMemory

public final long getMaxMemory()

getCriticalThreshold

public final long getCriticalThreshold()

getCacheUsage

public abstract long getCacheUsage()

updateCacheUsage

abstract boolean updateCacheUsage(long increment)

isSharedCache

abstract boolean isSharedCache()


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