solutions.kalinka.kalinka-sub-service-example.0.0.9.source-code.clustering-config-zk.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <bean id="hostResolver" class="com.github.dcsolutions.kalinka.cluster.zk.ZkHostResolver"> <constructor-arg index="0" ref="zkClient" /> <constructor-arg index="1" value="${cache.initial.size}" /> <constructor-arg index="2" value="${cache.max.size}" /> <constructor-arg index="3" value="${cache.eviction.hours}" /> </bean> <bean id="zkClient" class="org.I0Itec.zkclient.ZkClient"> <constructor-arg index="0" type="java.lang.String" value="${zk.hosts}" /> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy