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

org.boon.slumberdb.mysql.SimpleJavaSerializationKeyValueStoreMySQL Maven / Gradle / Ivy

There is a newer version: 0.34
Show newest version
package org.boon.slumberdb.mysql;

import org.boon.slumberdb.impl.SerializedJavaKeyValueStore;
import org.boon.slumberdb.base.BaseStringBinaryKeyValueStore;
import org.boon.slumberdb.serialization.JavaDeserializerBytes;
import org.boon.slumberdb.serialization.JavaSerializerBytes;

import java.io.Serializable;

/**
 * Created by Richard on 4/4/14.
 */
public class SimpleJavaSerializationKeyValueStoreMySQL extends BaseStringBinaryKeyValueStore implements SerializedJavaKeyValueStore {


    public SimpleJavaSerializationKeyValueStoreMySQL(String url, String userName, String password, String table, Class type, int batchSize) {
        super(new SimpleStringBinaryKeyValueStoreMySQL(url, userName, password, table,  batchSize));
        this.valueObjectConverter = new JavaDeserializerBytes<>();
        this.valueSerializer = new JavaSerializerBytes<>();
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy