[jboss-jira] [JBoss JIRA] Updated: (JGRP-1306) Custom thread factories, pools and timer overridden in Protocol.init()

Bela Ban (JIRA) jira-events at lists.jboss.org
Fri Mar 18 11:13:45 EDT 2011


     [ https://issues.jboss.org/browse/JGRP-1306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bela Ban updated JGRP-1306:
---------------------------

    Fix Version/s: 2.12.1


> Custom thread factories, pools and timer overridden in Protocol.init()
> ----------------------------------------------------------------------
>
>                 Key: JGRP-1306
>                 URL: https://issues.jboss.org/browse/JGRP-1306
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 2.12
>            Reporter: Paul Ferraro
>            Assignee: Bela Ban
>            Priority: Minor
>             Fix For: 2.12.1
>
>
> To override thread pools/factories/timer of a protocol, one must do the following:
> UDP udp = new UDP();
> udp.init(); // Creates default pools
> udp.setThreadPool(...); // Destroys default pool first
> If I try to avoid the unnecessary thread creation/destruction by the following:
> UDP udp = new UDP();
> udp.setThreadPool(...);
> udp.init();
> ... then my custom pools get overridden by the default implementations.
> Instead, Protocol.init() should check to see if implementations already exist before instantiating the default implementations.

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


More information about the jboss-jira mailing list