io.github.spitmaster.warlock.core.Waround Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of warlock-spring-boot-starter Show documentation
Show all versions of warlock-spring-boot-starter Show documentation
warlock-spring-boot-starter is an annotation-driven concurrency tools library for java with Spring.
It is easy to use in Spring application
Just using annotation on your method , the concurrency lock problem would be solved
package io.github.spitmaster.warlock.core;
import org.aopalliance.intercept.MethodInvocation;
public interface Waround {
/**
* 在自定义的环境下执行业务函数
*
* @param methodInvocation 切点
* @return 业务函数的返回值
* @throws Throwable 业务方法可能抛出的异常
*/
Object doAround(MethodInvocation methodInvocation) throws Throwable;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy