本文整理了Java中org.geoserver.wms.WMS.getMaxRenderingTime()
方法的一些代码示例,展示了WMS.getMaxRenderingTime()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WMS.getMaxRenderingTime()
方法的具体详情如下:
包路径:org.geoserver.wms.WMS
类名称:WMS
方法名:getMaxRenderingTime
[英]Timeout on the smallest nonzero value of the WMS timeout and the timeout format option If both are zero then there is no timeout
[中]WMS Timeout和Timeout format选项的最小非零值超时如果两者都为零,则没有超时
代码示例来源:origin: locationtech/geowave
public int getMaxRenderTime(final int localMaxRenderTime, final WMS wms) {
final int wmsMaxRenderTime = wms.getMaxRenderingTime();
if (wmsMaxRenderTime == 0) {
maxRenderTime = localMaxRenderTime;
} else if (localMaxRenderTime != 0) {
maxRenderTime = Math.min(wmsMaxRenderTime, localMaxRenderTime);
} else {
maxRenderTime = wmsMaxRenderTime;
}
return maxRenderTime;
}
代码示例来源:origin: org.geoserver/gs-wms
/**
* Timeout on the smallest nonzero value of the WMS timeout and the timeout format option If
* both are zero then there is no timeout
*
* @param localMaxRenderingTime
*/
private int getMaxRenderingTime(int localMaxRenderingTime) {
int maxRenderingTime = getMaxRenderingTime() * 1000;
if (maxRenderingTime == 0) {
maxRenderingTime = localMaxRenderingTime;
} else if (localMaxRenderingTime != 0) {
maxRenderingTime = Math.min(maxRenderingTime, localMaxRenderingTime);
}
return maxRenderingTime;
}
代码示例来源:origin: org.geoserver/gs-wms
/**
* Returns the max rendering time taking into account the server limits and the request options
*
* @param request
* @return
*/
public int getMaxRenderingTime(GetMapRequest request) {
int localMaxRenderingTime = 0;
Object timeoutOption = request.getFormatOptions().get("timeout");
if (timeoutOption != null) {
try {
localMaxRenderingTime = Integer.parseInt(timeoutOption.toString());
} catch (NumberFormatException e) {
RenderedImageMapOutputFormat.LOGGER.log(
Level.WARNING,
"Could not parse format_option \"timeout\": " + timeoutOption,
e);
}
}
int maxRenderingTime = getMaxRenderingTime(localMaxRenderingTime);
return maxRenderingTime;
}
代码示例来源:origin: org.geoserver/gs-wms
int maxRenderingTime = getMaxRenderingTime();
long maxTime =
maxRenderingTime > 0 ? System.currentTimeMillis() + maxRenderingTime * 1000 : -1;
代码示例来源:origin: org.geoserver/gs-wms
int maxRenderingTime = wms.getMaxRenderingTime(request);
ServiceException serviceException = null;
boolean saveMap =
内容来源于网络,如有侵权,请联系作者删除!