Package org.opennms.netmgt.newts.support
Class CassandraPoolConfiguration
- java.lang.Object
-
- org.opennms.netmgt.newts.support.CassandraPoolConfiguration
-
@Configuration public class CassandraPoolConfiguration extends java.lang.Object
Loads the Cassandra pool configuration from system properties and exposes these as named beans. Uses a value of null if no system property is set (which allows the driver to use it's own defaults.)
-
-
Constructor Summary
Constructors Constructor Description CassandraPoolConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getCoreConnectionsPerHost()
java.lang.Integer
getMaxConnectionsPerHost()
java.lang.Integer
getMaxRequestsPerConnection()
-
-
-
Method Detail
-
getCoreConnectionsPerHost
@Bean(name="cassandra.pool.core-connections-per-host") public java.lang.Integer getCoreConnectionsPerHost()
-
getMaxConnectionsPerHost
@Bean(name="cassandra.pool.max-connections-per-host") public java.lang.Integer getMaxConnectionsPerHost()
-
getMaxRequestsPerConnection
@Bean(name="cassandra.pool.max-requests-per-connection") public java.lang.Integer getMaxRequestsPerConnection()
-
-