Package 

Class SqliteDatabaseExtKt

    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> T transactionTraced(SQLiteDatabase $self, String operationName, Boolean exclusive, Function2<Span, SQLiteDatabase, T> body) Run body in a transaction marking it as successful if it completes without exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • transactionTraced

         final static <T extends Any> T transactionTraced(SQLiteDatabase $self, String operationName, Boolean exclusive, Function2<Span, SQLiteDatabase, T> body)

        Run body in a transaction marking it as successful if it completes without exception. A io.opentracing.Span will be created around the transaction and will be closed when the transaction finishes.

        Parameters:
        operationName - the name of the Span created around the transaction.
        exclusive - Run in EXCLUSIVE mode when true, IMMEDIATE mode otherwise.
        body - the code to be executed inside the transaction.