users@grizzly.java.net

Re: design question about SelectorHandlerRunner and StateHolder

From: Survivant 00 <survivant00_at_gmail.com>
Date: Thu, 14 May 2009 11:28:04 -0400

yes thanks


2009/5/14 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>

>
>
> Survivant 00 wrote:
>
>> in the SelectorHandlerRunner in the run method you have that
>>
>> while ((controllerState = controllerStateHolder.getState(false)) !=
>> State.STOPPED &&
>> (selectorHandlerState =
>> selectorHandlerStateHolder.getState(false)) != State.STOPPED) {
>>
>>
>> just want to know why not
>>
>> while(!Thread.interrupted()){
>>
>
> because you can always do TCPSelectorHandler.shutdown() directly, and the
> Controller might have more that one SelectorHandler running.
>
> Does it help?
>
> A+
>
> -Jeanfrancois
>
>
>
>>
>> maybe I'll change my Runnable to reflect a better design.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>