com.gemstone.gemfire.cache.util
Interface ObjectSizer
- All Known Implementing Classes:
- ObjectSizerImpl
public interface ObjectSizer
The sizer interface defines a method that when called returns the
size of the object passed in. An implementation of this method is
required to use MemLRUController with a region. Implementation may
return hardcoded values for object size if the implementation knows
the object size for all objects that are likely to be cached.
Regions that store only byte arrays or blobs need not provide a
sizer implementation
- Since:
- 3.0
sizeof
int sizeof(Object o)
Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.