[ 
https://issues.apache.org/jira/browse/LANG-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706702#action_12706702
 ] 

Sebb commented on LANG-501:
---------------------------

I see.

createTask() also calls fetchTemporaryExecutor() and is not synch (and has a 
possible data race with getExternalExecutor() - maybe that does not matter), 
but again is package private. If these methods are to be kept, one solution 
would be to document the synch. requirements.

But a simpler implementation using final fields as far as possible would be 
easier to analyse and make thread-safe

> Add support for background initialization
> -----------------------------------------
>
>                 Key: LANG-501
>                 URL: https://issues.apache.org/jira/browse/LANG-501
>             Project: Commons Lang
>          Issue Type: New Feature
>            Reporter: Oliver Heger
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: BackgroundInitializer.patch
>
>
> This is a suggestion to add a {{BackgroundInitializer}} class that  allows 
> initializing an object in a background task. {{BackgroundInitializer}} is a 
> thin wrapper around a {{java.util.concurrent.Future}} object and uses an 
> {{ExecutorService}} for starting a background task that performs 
> initialization.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to