void function ( ) { long loc0 = System . currentTimeMillis ( ) ; final long loc1 = loc0 + timeout ; try { while ( ! stopped && loc1 > loc0 ) { wait ( loc1 - loc0 ) ; loc0 = System . currentTimeMillis ( ) ; } } catch ( InterruptedException loc2 ) { } if ( ! stopped ) { fireTimeoutOccured ( ) ; } }
the run method of the watch dog thread . this simply does a wait for the timeout time , and if the stop flag has not been set when the wait has returned or has been interrupted , the watch dog listeners are informed . concode_field_sep boolean stopped concode_elem_sep String ERROR_INVALID_TIMEOUT concode_elem_sep Vector observers concode_elem_sep long timeout concode_field_sep void fireTimeoutOccured concode_elem_sep void removeTimeoutObserver concode_elem_sep void stop concode_elem_sep void addTimeoutObserver concode_elem_sep void start