1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Buffered data type

  1. May 12, 2006 #1

    0rthodontist

    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

    Hurkyl

    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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?