org.webpieces.plugin.hsqldb.H2DbConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-h2db Show documentation
Show all versions of plugin-h2db Show documentation
Webpieces in-memory database plugin
package org.webpieces.plugin.hsqldb;
import java.util.function.Function;
import java.util.function.Supplier;
public class H2DbConfig {
private Supplier port = () -> 0; //default to 0 if not set
private String pluginPath = "/@db";
private Function convertDomain = null;
public H2DbConfig() {
}
public H2DbConfig(Supplier port, String urlPath) {
super();
this.port = port;
this.pluginPath = urlPath;
}
public Supplier getPort() {
return port;
}
public String getPluginPath() {
return pluginPath;
}
/**
* For twitter internal use with serviceproxy. If set, instead of using the port, to hit,
* we use the domain name change..
*/
public Function getConvertDomain() {
return convertDomain;
}
public void setConvertDomain(Function convertDomain) {
this.convertDomain = convertDomain;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy