@Override
public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException {
try {
context.proceed();
} catch (Throwable e) {
String path = (String) context.getProperty("metrics.path");
String name = name("REST", "WRITE", e.getClass().getSimpleName(), path);
JerseyMetricsPlugin.getMetricRegistry().meter(name).mark();
throw e;
}
}
AroundWriteMeter.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:respiro
作者:
评论列表
文章目录