All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.dehuckakpyt.telegrambot.transaction.action.TransactionAction.kt Maven / Gradle / Ivy

There is a newer version: 0.11.2
Show newest version
package io.github.dehuckakpyt.telegrambot.transaction.action

import org.springframework.transaction.annotation.Isolation
import org.springframework.transaction.annotation.Propagation


/**
 * Created on 05.07.2024.
 *
 * @author Denis Matytsin
 */
interface TransactionAction {

    public suspend operator fun  invoke(
        propagation: Propagation = Propagation.REQUIRED,
        isolation: Isolation = Isolation.DEFAULT,
        timeout: Int = -1,
        readOnly: Boolean = false,
        name: String? = null,
        block: () -> T,
    ): T
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy