com.bagri.server.hazelcast.store.DocumentStoreAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bagri-server-hazelcast Show documentation
Show all versions of bagri-server-hazelcast Show documentation
Bagri DB Cache: Hazelcast implementation
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