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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy