You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Tracy Snell (JIRA)" <ji...@apache.org> on 2011/04/18 08:04:05 UTC

[jira] [Commented] (CAMEL-3758) use AtomicInteger in AvailablePortFinder

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

Tracy Snell commented on CAMEL-3758:
------------------------------------

This change doesn't break any code. Unless you were completely using it wrong. In that case it fixes your code. It just allows for easier use and parallel unit tests are much less likely to clash.

> use AtomicInteger in AvailablePortFinder 
> -----------------------------------------
>
>                 Key: CAMEL-3758
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3758
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-test
>            Reporter: Tracy Snell
>            Assignee: Tracy Snell
>            Priority: Minor
>             Fix For: 2.8.0
>
>
> Use a static AutomicInteger in AvailablePortFinder to increment the default port available. Will remove the burden from the user of the class and will help if we move to a multi threaded test environment.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira