org.netbeans.mdr.persistence.btreeimpl.btreestorage
Interface MDRCache.OverflowHandler

All Known Implementing Classes:
BtreeDatabase
Enclosing interface:
MDRCache

public static interface MDRCache.OverflowHandler

The cache handler is called when the number of changes in the cache reaches its threshhold. The handler is expected to do something to reduce the number of changed objects in the cache, for instance, write them to disk


Method Summary
 void cacheThreshholdReached(MDRCache cache, int size)
          Notify handler that the cache has reached its threshhold
 

Method Detail

cacheThreshholdReached

public void cacheThreshholdReached(MDRCache cache,
                                   int size)
                            throws StorageException
Notify handler that the cache has reached its threshhold

Parameters:
cache - cache which reached threshhold
size - number of changed objects currently in cache
Throws:
StorageException


Copyright © 2005 Apache Software Foundation. All Rights Reserved.