@ Override public Map < Integer , Long > createUpdatedMap ( ) { if ( storageFile == null ) { //In-Memory Stats Storage db = DBMaker . memoryDB ( ) . make ( ) ; } else { db = DBMaker . fileDB ( storageFile ) . closeOnJvmShutdown ( ) . transactionEnable ( ) //Default to Write Ahead Log - lower performance, but has crash protection . make ( ) ; } updated = db . hashMap ( "updated" ) . keySerializer ( Serializer . INTEGER ) . valueSerializer ( Serializer . LONG ) . createOrOpen ( ) ; return updated ; }
Create the storage map