com.gemstone.gemfire.cache.util
Class ObjectSizerImpl
java.lang.Object
com.gemstone.gemfire.cache.util.ObjectSizerImpl
- All Implemented Interfaces:
- ObjectSizer
Deprecated. use ObjectSizer.DEFAULT instead.
public class ObjectSizerImpl
- extends Object
- implements ObjectSizer
This class provides an implementation of the ObjectSizer interface. This
uses a helper class to provide the size of an object. The implementation uses
reflection to compute object size. This is to be used for testing purposes only
This implementation is slow and may cause throughput numbers to drop if used on
complex objects.
ObjectSizerImpl
public ObjectSizerImpl()
- Deprecated.
sizeof
public int sizeof(Object o)
- Deprecated.
- Specified by:
sizeof in interface ObjectSizer
Copyright © 1997-2012 VMware, Inc. All rights reserved.