org.apache.derby.iapi.services.cache
Interface SizedCacheable

All Superinterfaces:
Cacheable

public interface SizedCacheable
extends Cacheable

This interface extends the Cacheable interface (@see Cacheable) with a method that estimates the size of the Cacheable object, in bytes. CacheManagers constructed with the SizedCacheFactory interface regulate the total estimated cache size, in bytes. CacheManagers constructed with the CacheFactory use regulate the total number of cache entries.

Author:
Jack Klebanoff
See Also:
Cacheable, CacheFactory

Method Summary
 int getSize()
          Get the estimated size of the cacheable object.
 
Methods inherited from interface org.apache.derby.iapi.services.cache.Cacheable
clean, clearIdentity, createIdentity, getIdentity, isDirty, setIdentity
 

Method Detail

getSize

public int getSize()
Get the estimated size of the cacheable object.

Returns:
the estimated size, in bytes

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.