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

com.noir.common.lock.DLockFactory Maven / Gradle / Ivy

There is a newer version: 0.1.6-RELEASE
Show newest version
package com.noir.common.lock;

import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;

public interface DLockFactory {

    /**
     * 获取锁
     *
     * @param name
     * @return
     */
    public Lock getLock(String name);

    /**
     * 获取锁
     *
     * @param name
     * @param expire
     * @param unit
     * @return
     */
    public Lock getLock(String name, long expire, TimeUnit unit);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy