[
https://issues.apache.org/jira/browse/OAK-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395284#comment-15395284
]
Francesco Mari commented on OAK-4608:
-------------------------------------
bq. I see no real diff between them, just 2 different names for something that
boils down to the same thing.
{{trigger()}} can be called multiple times over the lifetime of the
{{TriggeredOperation}} and it will execute the {{Runnable}} every time, unless
that {{Runnable}} is not currently executing. {{start()}} is supposed to be
called once during the lifetime of {{PeriodicOperation}} and schedules the
{{Runnable}} to be executed at fixed time intervals until the operation is
stopped.
> Unify background operation impls
> --------------------------------
>
> Key: OAK-4608
> URL: https://issues.apache.org/jira/browse/OAK-4608
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: segment-tar
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
>
> I unified the 2 background operation implementations and made then extend
> {{Closeable}}, this reduces the code footprint a bit and makes it easier for
> me to add a new operation.
> [~frm], [~mduerig] change is in this commit, please review!
> https://github.com/stillalex/jackrabbit-oak/commit/01b81cc068db8200fa736d96bd3abb064f988590
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)