use PersistentMap in DataStore
Replaces the use of in-memory data structures with the PersistentMap. This is the crucial step in reducing memory usage for both persistent storage and main memory.
This commit is contained in:
@@ -58,4 +58,10 @@ public class Preconditions {
|
||||
}
|
||||
}
|
||||
|
||||
public static void checkNull(final Object actual, final String message, final Object... args) {
|
||||
if (actual != null) {
|
||||
throw new IllegalStateException(MessageFormat.format(message, args));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user