Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


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 12.1.2.0.3

E26043-02


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