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

io.seata.solon.annotation.GlobalLock Maven / Gradle / Ivy

There is a newer version: 3.0.0-M4
Show newest version
package io.seata.solon.annotation;

import java.lang.annotation.*;

/**
 * 全局锁
 *
 * @author noear
 * @since 2.5
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE})
@Inherited
public @interface GlobalLock {
    /**
     * customized global lock retry interval(unit: ms)
     * you may use this to override global config of "client.rm.lock.retryInterval"
     * note: 0 or negative number will take no effect(which mean fall back to global config)
     * @return lock retry interval
     */
    int lockRetryInterval() default 0;

    /**
     * customized global lock retry times
     * you may use this to override global config of "client.rm.lock.retryTimes"
     * note: negative number will take no effect(which mean fall back to global config)
     * @return lock retry times
     */
    int lockRetryTimes() default -1;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy