Class ArrayClustering

    • Field Detail

      • EMPTY_SIZE

        public static final long EMPTY_SIZE
    • Constructor Detail

      • ArrayClustering

        public ArrayClustering​(byte[]... values)
    • Method Detail

      • unsharedHeapSize

        public long unsharedHeapSize()
        Specified by:
        unsharedHeapSize in interface IMeasurableMemory
        Returns:
        the amount of on-heap memory retained by the object that might be reclaimed if the object were reclaimed, i.e. it should try to exclude globally cached data where possible, or counting portions of arrays that are referenced by the object but used by other objects only (e.g. slabbed byte-buffers), etc.