title: Java collections that spool to disk
body: <p>I'm running out of memory in Java due to some very large Lists and Sets built up over the course of a transaction and iterated over just once at transaction's end.  Are there any libraries that provide Java collections that can spool their serializable contents to disk when the collection size exceeds a given threshold?</p>