public static interface Realm.Transaction
Realm.beginTransaction()
and Realm.commitTransaction()
If any exception is thrown during the transaction Realm.cancelTransaction()
will be called
instead of Realm.commitTransaction()
.void execute(Realm realm)