public boolean isCancelled() {
        synchronized (monitor) {
            if (cancel) {
                return true;
            }
            if (timeout != null && timeRemaining(TimeUnit.MILLISECONDS) <= 0) {
                return true;
            }
        }
        if (parent != null && parent.isCancelled()) {
            return true;
        }
        return false;
    }
<p>Returns whether or not this Request has been cancelled. This can be thought of as the {@link
Thread#isInterrupted()} of Requests - it does not enforce anything in ways of blocking the Request, it is simply
a signal to allow the developer to break early if the Request has already been dropped.</p>

<p>This method will also return <em>true</em> if the Request has a non-null timeout, and that timeout has
expired.</p>

<p>Finally, this method will also return <em>true</em> if this Request has a parent Request that has been
cancelled.</p>

@return True if this Request has timed out or been cancelled.
@see #cancel()
@see #setTimeout(long, TimeUnit)
jdisc_core/src/main/java/com/yahoo/jdisc/Request.java