197198199200201202203204205206207
status = workItem.getStatus( ); while ( ( status != WorkEvent.WORK_COMPLETED ) && ( status != WorkEvent.WORK_REJECTED ) ) { try { workItem.wait( ); } catch ( InterruptedException e ) { // not sure if this is the right thing to do return false;
229230231232233234235236237238239
{ if ( timeout > 0 ) { try { workItem.wait( timeout ); } catch ( InterruptedException e ) { // not sure if this is the right thing to do return false;
311312313314315316317318319320321
&& ( status != WorkEvent.WORK_REJECTED ) && ( timeout > 0 ) ) { try { workItem.wait( timeout ); } catch ( InterruptedException e ) { // not sure if this is the right thing to do return null;
201202203204205206207208209210211
233234235236237238239240241242243
315316317318319320321322323324325