Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.util
Interface Sizable


public interface Sizable

The Sizable interface is implemented by types that are capable of calculating the memory footprint of an instance.

Since:
Coherence 3.7
Author:
coh 2010.10.01

Method Summary
 int calculateSize()
          Calculate the memory footprint for this instance.

 

Method Detail

calculateSize

int calculateSize()
Calculate the memory footprint for this instance. The calculation is discretionary to the implementation.

Note: If utilizing SimpleMemoryCalculator#sizeOf(Object), do not pass the instance itself as it will result in endless recursion.

Returns:
the memory footprint (in bytes) of this instance

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.