while (!future.isDone()) {
future.get(serviceMethodTimeout, TimeUnit.SECONDS);
}
} catch (RejectedExecutionException ree) {//超过最大的服务平台的最大资源限制,无法提供服务
RopRequestContext ropRequestContext = buildRequestContextWhenException(servletRequest, beginTime);
RejectedServiceResponse ropResponse = new RejectedServiceResponse(ropRequestContext.getLocale());
writeResponse(ropResponse, servletResponse, ServletRequestContextBuilder.getResponseFormat(servletRequest));
fireAfterDoServiceEvent(ropRequestContext);
} catch (TimeoutException e) {//服务时间超限
RopRequestContext ropRequestContext = buildRequestContextWhenException(servletRequest, beginTime);
TimeoutErrorResponse ropResponse =