b198449a152c6f917cfbfad47edb807e699904f8
[controller.git] / opendaylight / config / netty-timer-config / src / main / resources / OSGI-INF / blueprint / netty-timer.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
3            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
4            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
5     odl:restart-dependents-on-updates="false">
6
7   <cm:property-placeholder persistent-id="org.opendaylight.netty.timer" update-strategy="none">
8     <cm:default-properties>
9       <cm:property name="tick-duration" value="0"/>
10       <cm:property name="ticks-per-wheel" value="0"/>
11     </cm:default-properties>
12   </cm:property-placeholder>
13
14   <bean id="timer" class="org.opendaylight.controller.config.yang.netty.timer.HashedWheelTimerCloseable"
15           factory-method="newInstance">
16     <argument value="${tick-duration}"/>
17     <argument value="${ticks-per-wheel}"/>
18   </bean>
19
20   <service ref="timer" interface="io.netty.util.Timer" odl:type="global-timer"/>
21
22 </blueprint>