com.godmonth.util.lock.lockmap.hazelcast.HazelcastLockMap Maven / Gradle / Ivy
package com.godmonth.util.lock.lockmap.hazelcast;
import java.util.concurrent.locks.Lock;
import com.godmonth.util.lock.lockmap.LockMap;
import com.hazelcast.core.HazelcastInstance;
public class HazelcastLockMap implements LockMap {
private HazelcastInstance hazelcastInstance;
@Override
public Lock getLock(String key) {
return hazelcastInstance.getLock(key);
}
public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
this.hazelcastInstance = hazelcastInstance;
}
}