Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Buffered data type

  1. May 12, 2006 #1


    User Avatar
    Science Advisor

    Does the Java API have any way of automatically buffering Collections, so that it stores only a certain amount in memory and stuff that was not recently used goes to the hard drive if there is a lot in memory?
  2. jcsd
  3. Jun 21, 2006 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    I don't think such a thing exists inherently, at least not in the collections package. I suppose you have too much stuff to let the OS handle everything with paging? If you want to try writing this yourself, the key will be use of the SoftReference class.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook