Duration unit is often something hard to know when you read code. In java, we usually use long type and suppose this is milliseconds. But this is not always the case.
What we start to do to fix this misunderstanding is to put the unit in the key but this is noise !
An elegant solution would be to handle Duration deserialisation in descriptors. As it, we will be able to write elegant stuff like:
<extension target="org.nuxeo.my.service.SuperService" point="extension"> <property>3s</property> </extension>