Docs Menu

Interface Realm.Transaction

On this page

  • io.realm
  • Nested Class Summary
  • Method Summary
  • Method Detail
  • execute

Enclosing class:


Encapsulates a Realm transaction.Using this class will automatically handle io.realm.Realm.beginTransaction() and io.realm.Realm.commitTransaction() If any exception is thrown during the transaction io.realm.Realm.cancelTransaction() will be called instead of io.realm.Realm.commitTransaction().

Modifier and Type
Class and Description
public static
public static interface
public static interface
Modifier and Type
Method and Description
public void
Realm realm
public void execute (
Realm realm
←  Class Realm.CallbackClass Realm.Transaction.Callback →
Give Feedback
© 2022 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.