Package ai.velr

Interface TransactionCallback<T>

Type Parameters:
T - callback result type
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TransactionCallback<T>
Callback run inside a Velr transaction.
  • Method Summary

    Modifier and Type
    Method
    Description
    run(VelrTx tx)
    Execute work using an open transaction.
  • Method Details

    • run

      T run(VelrTx tx) throws Exception
      Execute work using an open transaction.
      Parameters:
      tx - active transaction
      Returns:
      callback result
      Throws:
      Exception - any error to propagate and roll back the transaction