b4783ecbca9bf4fd0d20a0bb77cf1689ddecdfbd
[controller.git] / opendaylight / config / netty-timer-config / src / main / resources / org / opendaylight / 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><null/></argument> <!-- ThreadFactory -->
17     <argument value="${tick-duration}"/>
18     <argument value="${ticks-per-wheel}"/>
19   </bean>
20
21   <service ref="timer" interface="io.netty.util.Timer" odl:type="global-timer">
22     <service-properties>
23       <entry key="config-module-namespace" value="urn:opendaylight:params:xml:ns:yang:controller:netty:timer"/>
24       <entry key="config-module-name" value="netty-hashed-wheel-timer"/>
25       <entry key="config-instance-name" value="global-timer"/>
26     </service-properties>
27   </service>
28
29 </blueprint>