Class Storage


  • public class Storage
    extends Object
    An in-memory storage for collectors. It allows to measure the amount of memory used.
    • Constructor Detail

      • Storage

        public Storage()
    • Method Detail

      • add

        public long add​(String key,
                        long value)
      • put

        public void put​(String key,
                        long value)
      • getStorageSize

        public long getStorageSize()
        Return the storage estimated size, in bytes.
      • size

        public int size()
        Get the number of entries.