All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.godmonth.util.advices.lock.hazelcast.HazelcastLockMap Maven / Gradle / Ivy

package com.godmonth.util.advices.lock.hazelcast;

import java.util.concurrent.locks.Lock;

import com.godmonth.util.advices.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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy