public boolean cancelTimer(final long timerId)
    {
        final int wheelIndex = tickForTimerId(timerId);
        final int arrayIndex = indexInTickArray(timerId);

        if (wheelIndex < wheel.length)
        {
            final long[] array = wheel[wheelIndex];

            if (arrayIndex < array.length && NULL_TIMER != array[arrayIndex])
            {
                array[arrayIndex] = NULL_TIMER;
                timerCount--;

                return true;
            }
        }

        return false;
    }
public boolean cancelTimer ( final long timerId ) { final int wheelIndex = tickForTimerId ( timerId ) ; final int arrayIndex = indexInTickArray ( timerId ) ; if ( wheelIndex < wheel . length ) { final long [ ] array = wheel [ wheelIndex ] ; if ( arrayIndex < array . length && NULL_TIMER != array [ arrayIndex ] ) { array [ arrayIndex ] = NULL_TIMER ; timerCount -- ; return true ; } } return false ; }
Cancel a previously scheduled timer.

@param timerId of the timer to cancel.
@return true if successful otherwise false if the timerId did not exist.