laforge49 / utils

Advanced Java utility classes.

Home Page:http://laforge49.github.io/projects/utils/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a small COW database

laforge49 opened this issue · comments

Implement a small copy-on-write database (a calf) that has only one block which is written alternately to two locations.

The block will have a max length, a block length, a 256-bit checksum, a timestamp and a serialized immutable.

The database itself will be a JActor2 actor.

When reopening the db, always use the latest valid block.