Module org.jooq
Package org.jooq

Interface TransactionalRunnable

  • 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 TransactionalRunnable
    An FunctionalInterface that wraps transactional code.

    Transactional code should not depend on any captured scope, but use the argument Configuration passed to the run(Configuration) method to derive its transaction context.

    If transactional code needs to depend on captured scope ("context"), then ContextTransactionalRunnable is a better fit.

    Author:
    Lukas Eder