protected void setTimerState ( TimerState state , Thread thread ) { assert ( ( state == TimerState . IN_TIMEOUT || state == TimerState . RETRY_TIMEOUT ) && thread != null ) || thread == null : "Invalid to set timer state " + state + " with executing Thread " + thread ; this . timerState = state ; this . executingThread = thread ; }
Sets the state and timer task executing thread of this timer