protected boolean dispatch ( TCPBaseRequestContext req , IOException ioe ) { if ( req . blockedThread ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "dispatcher notifying waiting synch request " ) ; } if ( ioe != null ) { req . blockingIOError = ioe ; } req . blockWait . simpleNotify ( ) ; return true ; } // dispatch the async work return dispatchWorker ( new Worker ( req , ioe ) ) ; }
Dispatches requests to workrer threds or notifies waiting thread .