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;
}
Aggregations