private boolean hasRequestContextTimeout ( RequestContext requestContext ) { Object requestTimeout = requestContext . getLocalAttr ( R2Constants . REQUEST_TIMEOUT ) ; return ( requestTimeout instanceof Number ) && ( ( ( Number ) requestTimeout ) . intValue ( ) > 0 ) ; }
Check whether per - request timeout is specified in the given request context .