Maintaining a persistent copy of a Java collection on disk
In my app I have a Java collection (specifically a ConcurrentHashMap<S开发者_如何学编程tring,Queue<MyObjectThatImplementsSerializable>>
)
Is there any library out there that will give me a disk backed implementation that will be persisted/restored across application restarts, and will dynamically write/remove objects as I add/remove objects from the map?
I want to preserve some state that is stored in such an object as transparently as possible.
You could try using Hazelcast and providing a disk persister.
you also have disk-backed-map http://code.google.com/p/disk-backed-map/
精彩评论