Interface Sizeable


public interface Sizeable
All the objects put into the cache must implement this interface if the application wants to control the size of a cache instance in terms of heapsize.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns an implementation-specific size of the object.
  • Method Details

    • getObjectSize

      long getObjectSize()
      Returns an implementation-specific size of the object.
      Returns:
      estimated size of object