Search in sources :

Example 1 with EcLockTemplate

use of com.easy.cloud.core.lock.template.EcLockTemplate in project dq-easy-cloud by dq-open-cloud.

the class EcLockBO method buildLockTemplate.

private EcLockBO buildLockTemplate() {
    // 先构建注解
    EcLockAnnotation distributedLock = buildEcDistributedLock().lockDTO.getLockAnnotation();
    // 根据类型选择分布式锁模板对象
    EcLockTemplate lockTemplate = this.lockTemplateSelector.selectLockTemplateByType(distributedLock.templateType());
    this.lockDTO.setLockTemplate(lockTemplate);
    return this;
}
Also used : EcLockAnnotation(com.easy.cloud.core.lock.annotation.EcLockAnnotation) EcLockTemplate(com.easy.cloud.core.lock.template.EcLockTemplate)

Aggregations

EcLockAnnotation (com.easy.cloud.core.lock.annotation.EcLockAnnotation)1 EcLockTemplate (com.easy.cloud.core.lock.template.EcLockTemplate)1