[
https://issues.apache.org/jira/browse/CAMEL-20385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151661#comment-18151661
]
Claus Ibsen commented on CAMEL-20385:
-------------------------------------
This is a general idea without a list of APIs to change, and it has had no
activity since 2024. Changing public
`long timeout` signatures to `Duration` is a breaking change that should be
done API by API with a concrete reason.
Closing; please open a focused ticket for a specific API if needed.
_Claude Code on behalf of davsclaus_
> camel-core: use modern time/date classes and interfaces
> -------------------------------------------------------
>
> Key: CAMEL-20385
> URL: https://issues.apache.org/jira/browse/CAMEL-20385
> Project: Camel
> Issue Type: Task
> Components: camel-core
> Reporter: Otavio Rodolfo Piske
> Priority: Minor
> Fix For: Future
>
>
> We have multiple places within Camel that still use older ways to deal with
> dates. Although that is still OK for internal APIs, we could make things
> simpler for public APIs.
> For instance, instead of having someMethod(long timeout) we could use
> someMethod(Duration duration) ... or equivalent.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)