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

com.es.plus.adapter.lock.EsLockFactory Maven / Gradle / Ivy

There is a newer version: 0.3.941
Show newest version
package com.es.plus.adapter.lock;


/**
 * @Author: hzh
 * @Date: 2022/9/13 16:13
 */
public class EsLockFactory {
    private final ELockClient esPlusLockClient;

    public EsLockFactory(ELockClient esPlusLockClient) {
        this.esPlusLockClient = esPlusLockClient;
    }

    public EsReadWriteLock getReadWrtieLock(String key) {
        return new EsReadWriteLock(esPlusLockClient,key);
    }

    public ELock getLock(String key) {
        return new EsLock(esPlusLockClient,key);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy