[jboss-jira] [JBoss JIRA] Closed: (JBREM-676) TimerTasks run by TimerUtil should have a chance to clean up if TimerUtil.destroy() is called.
Ron Sigal (JIRA)
jira-events at jboss.com
Sun Jan 21 20:23:52 EST 2007
[ http://jira.jboss.com/jira/browse/JBREM-676?page=all ]
Ron Sigal closed JBREM-676.
---------------------------
Resolution: Done
Interface org.jboss.remoting.util.StoppableTimerTask has been introduced and given special treatment in org.jboss.remoting.util.TimerUtil. In particular, TimerUtil keeps a record of StoppableTimerTask, and when TimerUtil.destroy() is called, StoppableTimerTask.stop() will be called for all registered StoppableTimerTasks.
Unit test: org.jboss.test.remoting.util.TimerUtilTestCase.
> TimerTasks run by TimerUtil should have a chance to clean up if TimerUtil.destroy() is called.
> ----------------------------------------------------------------------------------------------
>
> Key: JBREM-676
> URL: http://jira.jboss.com/jira/browse/JBREM-676
> Project: JBoss Remoting
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Affects Versions: 2.2.0.Alpha6
> Reporter: Ron Sigal
> Assigned To: Ron Sigal
> Fix For: 2.2.0.Alpha6
>
>
> org.jboss.remoting.ConnectionValidator is being changed so that it creates a client invoker one time in start() and destroys it in stop(), instead of recreating it for each ping. But it runs in org.jboss.remoting.util.TimerUtil's Timer, and if TimerUtil.destroy() were called, ConnectionValidator.stop() would never get called.
> Comment from Tom Elrod: "... the Client that created the ConnectionValidator would be out in the cold if someone were to destroy() the TimerUtil since the ConnectionValidator would still be there, just doing nothing (and Client would be unaware that ConnectionValidator is no longer checking for the server to be down). ...Hopefully no one would do that in code."
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list