resets the current progress towards timeout to 0 . concode_field_sep Timer timeoutTimer concode_elem_sep TimerTask timeoutTask concode_elem_sep boolean timeoutEnabled concode_elem_sep long timeoutMillis concode_field_sep void setSocketTimeout concode_elem_sep void setTimeoutEnabled concode_elem_sep void timeoutOccurred
void function ( ) { if ( timeoutTask != null ) timeoutTask . cancel ( ) ; if ( timeoutMillis == 0 || ! timeoutEnabled ) return ; timeoutTask = new TimerTask ( ) { @ Override public void run ( ) { timeoutOccurred ( ) ; } } ; timeoutTimer . schedule ( timeoutTask , timeoutMillis ) ; }