[ 
https://issues.apache.org/jira/browse/OAK-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395277#comment-15395277
 ] 

Alex Parvulescu commented on OAK-4608:
--------------------------------------

bq. The methods trigger() and start() made clear that they had different usage 
patterns.
did it? I see no real diff between them, just 2 different names for something 
that boils down to the same thing.

bq. Also, including a fixed timeout in the implementation of the close() method 
makes that method tied to what we consider to be a good timeout for the use 
case of the FileStore.
right. I left the {{stop()}} method there for this case, the default {{close}} 
can use some sensible defaults. also, AFAIK there are no other uses of these 
classes current and planned, so before over generalizing, I'd like to focus on 
what we have now.

I'm ok with introducing {{BackgroundOperation}}, even though it's not really 
needed, but it could extend {{Closeable}} and with some sensible defaults we 
won't need that utility method.

> 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)

Reply via email to