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

com.bagri.server.hazelcast.store.DocumentStoreAdapter Maven / Gradle / Ivy

The newest version!
package com.bagri.server.hazelcast.store;

import java.util.Collection;
import java.util.Map;

import com.bagri.core.DocumentKey;
import com.bagri.core.model.Document;
import com.bagri.core.server.api.DocumentStore;
import com.hazelcast.core.MapStore;

public class DocumentStoreAdapter extends DocumentLoaderAdapter implements MapStore {
	
	public DocumentStoreAdapter(DocumentStore extStore) {
		super(extStore);
	}
	
	@Override
	public void store(DocumentKey key, Document value) {
		extStore.storeDocument(key, value);
	}

	@Override
	public void storeAll(Map map) {
		extStore.storeAllDocuments(map);
	}

	@Override
	public void delete(DocumentKey key) {
		extStore.deleteDocument(key);
	}

	@Override
	public void deleteAll(Collection keys) {
		extStore.deleteAllDocuments(keys);
	}

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy