users@grizzly.java.net

design question about SelectorHandlerRunner and StateHolder

From: Survivant 00 <survivant00_at_gmail.com>
Date: Thu, 14 May 2009 10:58:09 -0400

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()){


maybe I'll change my Runnable to reflect a better design.