public class FiberDataSourceFactory
extends io.dropwizard.db.DataSourceFactory
Constructor and Description |
---|
FiberDataSourceFactory(io.dropwizard.db.DataSourceFactory dsf) |
Modifier and Type | Method and Description |
---|---|
io.dropwizard.db.ManagedDataSource |
build(com.codahale.metrics.MetricRegistry metricRegistry,
String name) |
int |
getAbandonWhenPercentageFull() |
Boolean |
getAutoCommitByDefault() |
boolean |
getCheckConnectionOnBorrow() |
boolean |
getCheckConnectionOnConnect() |
boolean |
getCheckConnectionOnReturn() |
boolean |
getCheckConnectionWhileIdle() |
boolean |
getCommitOnReturn() |
String |
getDefaultCatalog() |
io.dropwizard.db.DataSourceFactory.TransactionIsolation |
getDefaultTransactionIsolation() |
String |
getDriverClass() |
io.dropwizard.util.Duration |
getEvictionInterval() |
String |
getInitializationQuery() |
int |
getInitialSize() |
boolean |
getLogAbandonedConnections() |
boolean |
getLogValidationErrors() |
Optional<io.dropwizard.util.Duration> |
getMaxConnectionAge() |
int |
getMaxSize() |
io.dropwizard.util.Duration |
getMaxWaitForConnection() |
io.dropwizard.util.Duration |
getMinIdleTime() |
int |
getMinSize() |
String |
getPassword() |
Map<String,String> |
getProperties() |
Boolean |
getReadOnlyByDefault() |
String |
getUrl() |
boolean |
getUseFairQueue() |
String |
getUser() |
io.dropwizard.util.Duration |
getValidationInterval() |
String |
getValidationQuery() |
boolean |
isAlternateUsernamesAllowed() |
boolean |
isAutoCommentsEnabled() |
boolean |
isDefaultReadOnly() |
boolean |
isInitialSizeGreaterThanMinSize() |
boolean |
isInitialSizeLessThanMaxSize() |
boolean |
isMinSizeLessThanMaxSize() |
void |
setAbandonWhenPercentageFull(int percentage) |
void |
setAlternateUsernamesAllowed(boolean allow) |
void |
setAutoCommentsEnabled(boolean autoCommentsEnabled) |
void |
setAutoCommitByDefault(Boolean autoCommit) |
void |
setCheckConnectionOnBorrow(boolean checkConnectionOnBorrow) |
void |
setCheckConnectionOnConnect(boolean checkConnectionOnConnect) |
void |
setCheckConnectionOnReturn(boolean checkConnectionOnReturn) |
void |
setCheckConnectionWhileIdle(boolean checkConnectionWhileIdle) |
void |
setCommitOnReturn(boolean commitOnReturn) |
void |
setDefaultCatalog(String defaultCatalog) |
void |
setDefaultReadOnly(boolean defaultReadOnly) |
void |
setDefaultTransactionIsolation(io.dropwizard.db.DataSourceFactory.TransactionIsolation isolation) |
void |
setDriverClass(String driverClass) |
void |
setEvictionInterval(io.dropwizard.util.Duration interval) |
void |
setInitializationQuery(String query) |
void |
setInitialSize(int initialSize) |
void |
setLogAbandonedConnections(boolean log) |
void |
setLogValidationErrors(boolean log) |
void |
setMaxConnectionAge(io.dropwizard.util.Duration age) |
void |
setMaxSize(int maxSize) |
void |
setMaxWaitForConnection(io.dropwizard.util.Duration maxWaitForConnection) |
void |
setMinIdleTime(io.dropwizard.util.Duration time) |
void |
setMinSize(int minSize) |
void |
setPassword(String password) |
void |
setProperties(Map<String,String> properties) |
void |
setReadOnlyByDefault(Boolean readOnlyByDefault) |
void |
setUrl(String url) |
void |
setUseFairQueue(boolean fair) |
void |
setUser(String user) |
void |
setValidationInterval(io.dropwizard.util.Duration validationInterval) |
void |
setValidationQuery(String validationQuery) |
asSingleConnectionPool, getHealthCheckValidationQuery, getHealthCheckValidationTimeout, getRemoveAbandonedTimeout, getValidationQueryTimeout, getValidatorClassName, isRemoveAbandoned, setRemoveAbandoned, setRemoveAbandonedTimeout, setValidationQueryTimeout, setValidatorClassName
public FiberDataSourceFactory(io.dropwizard.db.DataSourceFactory dsf)
public io.dropwizard.db.ManagedDataSource build(com.codahale.metrics.MetricRegistry metricRegistry, String name)
build
in interface io.dropwizard.db.PooledDataSourceFactory
build
in class io.dropwizard.db.DataSourceFactory
public boolean isAutoCommentsEnabled()
isAutoCommentsEnabled
in interface io.dropwizard.db.PooledDataSourceFactory
isAutoCommentsEnabled
in class io.dropwizard.db.DataSourceFactory
public void setAutoCommentsEnabled(boolean autoCommentsEnabled)
setAutoCommentsEnabled
in class io.dropwizard.db.DataSourceFactory
public String getDriverClass()
getDriverClass
in interface io.dropwizard.db.PooledDataSourceFactory
getDriverClass
in class io.dropwizard.db.DataSourceFactory
public void setDriverClass(String driverClass)
setDriverClass
in class io.dropwizard.db.DataSourceFactory
public String getUser()
getUser
in class io.dropwizard.db.DataSourceFactory
public void setUser(String user)
setUser
in class io.dropwizard.db.DataSourceFactory
public String getPassword()
getPassword
in class io.dropwizard.db.DataSourceFactory
public void setPassword(String password)
setPassword
in class io.dropwizard.db.DataSourceFactory
public String getUrl()
getUrl
in class io.dropwizard.db.DataSourceFactory
public void setUrl(String url)
setUrl
in class io.dropwizard.db.DataSourceFactory
public Map<String,String> getProperties()
getProperties
in interface io.dropwizard.db.PooledDataSourceFactory
getProperties
in class io.dropwizard.db.DataSourceFactory
public void setProperties(Map<String,String> properties)
setProperties
in class io.dropwizard.db.DataSourceFactory
public io.dropwizard.util.Duration getMaxWaitForConnection()
getMaxWaitForConnection
in class io.dropwizard.db.DataSourceFactory
public void setMaxWaitForConnection(io.dropwizard.util.Duration maxWaitForConnection)
setMaxWaitForConnection
in class io.dropwizard.db.DataSourceFactory
public String getValidationQuery()
getValidationQuery
in interface io.dropwizard.db.PooledDataSourceFactory
getValidationQuery
in class io.dropwizard.db.DataSourceFactory
public void setValidationQuery(String validationQuery)
setValidationQuery
in class io.dropwizard.db.DataSourceFactory
public int getMinSize()
getMinSize
in class io.dropwizard.db.DataSourceFactory
public void setMinSize(int minSize)
setMinSize
in class io.dropwizard.db.DataSourceFactory
public int getMaxSize()
getMaxSize
in class io.dropwizard.db.DataSourceFactory
public void setMaxSize(int maxSize)
setMaxSize
in class io.dropwizard.db.DataSourceFactory
public boolean getCheckConnectionWhileIdle()
getCheckConnectionWhileIdle
in class io.dropwizard.db.DataSourceFactory
public void setCheckConnectionWhileIdle(boolean checkConnectionWhileIdle)
setCheckConnectionWhileIdle
in class io.dropwizard.db.DataSourceFactory
public boolean isDefaultReadOnly()
isDefaultReadOnly
in class io.dropwizard.db.DataSourceFactory
public void setDefaultReadOnly(boolean defaultReadOnly)
setDefaultReadOnly
in class io.dropwizard.db.DataSourceFactory
public boolean isMinSizeLessThanMaxSize()
isMinSizeLessThanMaxSize
in class io.dropwizard.db.DataSourceFactory
public boolean isInitialSizeLessThanMaxSize()
isInitialSizeLessThanMaxSize
in class io.dropwizard.db.DataSourceFactory
public boolean isInitialSizeGreaterThanMinSize()
isInitialSizeGreaterThanMinSize
in class io.dropwizard.db.DataSourceFactory
public int getAbandonWhenPercentageFull()
getAbandonWhenPercentageFull
in class io.dropwizard.db.DataSourceFactory
public void setAbandonWhenPercentageFull(int percentage)
setAbandonWhenPercentageFull
in class io.dropwizard.db.DataSourceFactory
public boolean isAlternateUsernamesAllowed()
isAlternateUsernamesAllowed
in class io.dropwizard.db.DataSourceFactory
public void setAlternateUsernamesAllowed(boolean allow)
setAlternateUsernamesAllowed
in class io.dropwizard.db.DataSourceFactory
public boolean getCommitOnReturn()
getCommitOnReturn
in class io.dropwizard.db.DataSourceFactory
public void setCommitOnReturn(boolean commitOnReturn)
setCommitOnReturn
in class io.dropwizard.db.DataSourceFactory
public Boolean getAutoCommitByDefault()
getAutoCommitByDefault
in class io.dropwizard.db.DataSourceFactory
public void setAutoCommitByDefault(Boolean autoCommit)
setAutoCommitByDefault
in class io.dropwizard.db.DataSourceFactory
public String getDefaultCatalog()
getDefaultCatalog
in class io.dropwizard.db.DataSourceFactory
public void setDefaultCatalog(String defaultCatalog)
setDefaultCatalog
in class io.dropwizard.db.DataSourceFactory
public Boolean getReadOnlyByDefault()
getReadOnlyByDefault
in class io.dropwizard.db.DataSourceFactory
public void setReadOnlyByDefault(Boolean readOnlyByDefault)
setReadOnlyByDefault
in class io.dropwizard.db.DataSourceFactory
public io.dropwizard.db.DataSourceFactory.TransactionIsolation getDefaultTransactionIsolation()
getDefaultTransactionIsolation
in class io.dropwizard.db.DataSourceFactory
public void setDefaultTransactionIsolation(io.dropwizard.db.DataSourceFactory.TransactionIsolation isolation)
setDefaultTransactionIsolation
in class io.dropwizard.db.DataSourceFactory
public boolean getUseFairQueue()
getUseFairQueue
in class io.dropwizard.db.DataSourceFactory
public void setUseFairQueue(boolean fair)
setUseFairQueue
in class io.dropwizard.db.DataSourceFactory
public int getInitialSize()
getInitialSize
in class io.dropwizard.db.DataSourceFactory
public void setInitialSize(int initialSize)
setInitialSize
in class io.dropwizard.db.DataSourceFactory
public String getInitializationQuery()
getInitializationQuery
in class io.dropwizard.db.DataSourceFactory
public void setInitializationQuery(String query)
setInitializationQuery
in class io.dropwizard.db.DataSourceFactory
public boolean getLogAbandonedConnections()
getLogAbandonedConnections
in class io.dropwizard.db.DataSourceFactory
public void setLogAbandonedConnections(boolean log)
setLogAbandonedConnections
in class io.dropwizard.db.DataSourceFactory
public boolean getLogValidationErrors()
getLogValidationErrors
in class io.dropwizard.db.DataSourceFactory
public void setLogValidationErrors(boolean log)
setLogValidationErrors
in class io.dropwizard.db.DataSourceFactory
public Optional<io.dropwizard.util.Duration> getMaxConnectionAge()
getMaxConnectionAge
in class io.dropwizard.db.DataSourceFactory
public void setMaxConnectionAge(io.dropwizard.util.Duration age)
setMaxConnectionAge
in class io.dropwizard.db.DataSourceFactory
public io.dropwizard.util.Duration getMinIdleTime()
getMinIdleTime
in class io.dropwizard.db.DataSourceFactory
public void setMinIdleTime(io.dropwizard.util.Duration time)
setMinIdleTime
in class io.dropwizard.db.DataSourceFactory
public boolean getCheckConnectionOnBorrow()
getCheckConnectionOnBorrow
in class io.dropwizard.db.DataSourceFactory
public void setCheckConnectionOnBorrow(boolean checkConnectionOnBorrow)
setCheckConnectionOnBorrow
in class io.dropwizard.db.DataSourceFactory
public boolean getCheckConnectionOnConnect()
getCheckConnectionOnConnect
in class io.dropwizard.db.DataSourceFactory
public void setCheckConnectionOnConnect(boolean checkConnectionOnConnect)
setCheckConnectionOnConnect
in class io.dropwizard.db.DataSourceFactory
public boolean getCheckConnectionOnReturn()
getCheckConnectionOnReturn
in class io.dropwizard.db.DataSourceFactory
public void setCheckConnectionOnReturn(boolean checkConnectionOnReturn)
setCheckConnectionOnReturn
in class io.dropwizard.db.DataSourceFactory
public io.dropwizard.util.Duration getEvictionInterval()
getEvictionInterval
in class io.dropwizard.db.DataSourceFactory
public void setEvictionInterval(io.dropwizard.util.Duration interval)
setEvictionInterval
in class io.dropwizard.db.DataSourceFactory
public io.dropwizard.util.Duration getValidationInterval()
getValidationInterval
in class io.dropwizard.db.DataSourceFactory
public void setValidationInterval(io.dropwizard.util.Duration validationInterval)
setValidationInterval
in class io.dropwizard.db.DataSourceFactory