Search in sources :

Example 1 with HashMapMaker

use of org.mapdb.DB.HashMapMaker in project invesdwin-context-persistence by subes.

the class ADelegateMapDB method newDelegate.

protected ConcurrentMap<K, V> newDelegate() {
    final Maker fileDB = createDB();
    final DB db = configureDB(fileDB).make();
    final HashMapMaker<K, V> maker = db.hashMap(name, newKeySerializier(), newValueSerializer());
    return configureHashMap(maker).createOrOpen();
}
Also used : Maker(org.mapdb.DBMaker.Maker) HashMapMaker(org.mapdb.DB.HashMapMaker) DBMaker(org.mapdb.DBMaker) DB(org.mapdb.DB)

Aggregations

DB (org.mapdb.DB)1 HashMapMaker (org.mapdb.DB.HashMapMaker)1 DBMaker (org.mapdb.DBMaker)1 Maker (org.mapdb.DBMaker.Maker)1