com.liguanqiao.grow.lock.LockOpsIntegrationImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grow-lock-integration Show documentation
Show all versions of grow-lock-integration Show documentation
Grow 分布式锁Spring Integration封装
package com.liguanqiao.grow.lock;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.integration.support.locks.LockRegistry;
import java.util.concurrent.locks.Lock;
/**
* LockOps Spring 实现
*
* @author liguanqiao
* @since 2023/1/12
**/
@Slf4j
@AllArgsConstructor
public class LockOpsIntegrationImpl implements LockOps {
private final LockRegistry lockRegistry;
@Override
public Lock obtain(String lockKey) {
return lockRegistry.obtain(lockKey);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy