ClusterForwardProvider 接口 demo 插件。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
480 B

package com.fr.plugin.cluster.req.demo;
import com.fr.cluster.ClusterBridge;
import com.fr.cluster.lock.ClusterLock;
import com.fr.cluster.lock.ClusterLockFactory;
public class ClusterLockManager {
private ClusterLockManager() {
}
/**
* 获取锁
*
* @return 集群锁
*/
public static ClusterLock getLock() {
ClusterLockFactory factory = ClusterBridge.getLockFactory();
return factory.get(ClusterLockManager.class);
}
}