private void resetSketchStateTimeout ( ) { TimerTask onTimeout = new TimerTask ( ) { @ Override public void run ( ) { returnUploadError ( BeanError . STATE_TIMEOUT ) ; } } ; stopSketchStateTimeout ( ) ; sketchStateTimeout = new Timer ( ) ; sketchStateTimeout . schedule ( onTimeout , SKETCH_UPLOAD_STATE_TIMEOUT ) ; }
Reset the state timeout timer . If this timer fires the client has waited too long for a state update from the Bean and an error will be fired .