[
https://issues.apache.org/jira/browse/CAMEL-14878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17118351#comment-17118351
]
Guillaume Nodet commented on CAMEL-14878:
-----------------------------------------
Sorry, I missed your earlier comments a few days ago. I think the way to fix
the problem is not to change the {{PropertyConfigurerSupport}} to always
convert {{1s}} to {{1000}} but to add the information to the {{@UriPath}} with
{{javaType = "java.time.Duration"}} and change the generation of the property
configurers accordingly. The benefits would be a bit less magic, the fact that
the metamodel contains this information so that tooling can choose to help with
the syntax.
> Timeouts and durations should use a java.time.Duration instead of long
> ----------------------------------------------------------------------
>
> Key: CAMEL-14878
> URL: https://issues.apache.org/jira/browse/CAMEL-14878
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 3.2.0
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Priority: Major
> Fix For: 3.4.0
>
>
> This would allow to use a specific syntax which has been removed in 3.2.0,
> such as {{3s}} instead of {{3000}}. There are also cases where a pair of
> properties is used (duration / unit) which could be simplified to a single
> {{java.time.Duration}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)