org.infinispan.persistence.jdbc.configuration.JdbcBinaryStoreConfigurationBuilder Maven / Gradle / Ivy
package org.infinispan.persistence.jdbc.configuration;
import java.util.Map;
import java.util.Properties;
import org.infinispan.configuration.cache.PersistenceConfigurationBuilder;
import org.infinispan.configuration.parsing.XmlConfigHelper;
import org.infinispan.commons.util.TypedProperties;
public class JdbcBinaryStoreConfigurationBuilder extends
AbstractJdbcStoreConfigurationBuilder {
public static final int DEFAULT_CONCURRENCY_LEVEL = 2048;
public static final int DEFAULT_LOCK_ACQUISITION_TIMEOUT = 60000;
protected final BinaryTableManipulationConfigurationBuilder table;
private int concurrencyLevel = DEFAULT_CONCURRENCY_LEVEL;
private long lockAcquisitionTimeout = DEFAULT_LOCK_ACQUISITION_TIMEOUT;
public JdbcBinaryStoreConfigurationBuilder(PersistenceConfigurationBuilder builder) {
super(builder);
this.table = new BinaryTableManipulationConfigurationBuilder(this);
}
@Override
public JdbcBinaryStoreConfigurationBuilder self() {
return this;
}
/**
* Allows configuration of table-specific parameters such as column names and types
*/
public BinaryTableManipulationConfigurationBuilder table() {
return table;
}
@Override
public JdbcBinaryStoreConfigurationBuilder withProperties(Properties props) {
Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy