realm/realm-java — pull request #617 by emanuelez (2014-11-26 10:15:49+00:00)
Title: Mitigate the file size growing problem

This change does the following:
* disables the caching of Realm instances in threads without an event loop
* makes the Realm class implement Closable
* does reference counting for closing Realm instances
* checks if the Realm instance has not been closed before any operation