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.