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

se.gawell.fakeriak.buckets.InMemoryBuckets Maven / Gradle / Ivy

The newest version!
package se.gawell.fakeriak.buckets;

import java.util.concurrent.ConcurrentHashMap;

public class InMemoryBuckets implements Buckets {

	private ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();
	
	@Override
	public Bucket get(String bucketName) {
		return concurrentHashMap.get(bucketName);
	}

	@Override
	public void put(String bucketName, Bucket bucket) {
		concurrentHashMap.put(bucketName, bucket);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy