@Override public void onMessage(ReqT message) { SpanInScope scope = tracer.withSpanInScope(span); try { // retrolambda can't resolve this try/finally parser.onMessageReceived(message, span.customizer()); delegate().onMessage(message); } finally { scope.close(); } }
@Override public void onReady() { SpanInScope scope = tracer.withSpanInScope(span); try { // retrolambda can't resolve this try/finally delegate().onReady(); } finally { scope.close(); } } }
@Override public void onComplete() { SpanInScope scope = tracer.withSpanInScope(span); try { // retrolambda can't resolve this try/finally delegate().onComplete(); } finally { scope.close(); } }
@Override public void onCancel() { SpanInScope scope = tracer.withSpanInScope(span); try { // retrolambda can't resolve this try/finally delegate().onCancel(); } finally { scope.close(); } }
@Override public void onHalfClose() { SpanInScope scope = tracer.withSpanInScope(span); try { // retrolambda can't resolve this try/finally delegate().onHalfClose(); } finally { scope.close(); } }
@Override public void onHalfClose() { SpanInScope scope = tracer.withSpanInScope(span); try { // retrolambda can't resolve this try/finally delegate().onHalfClose(); } catch (RuntimeException | Error e) { // If there was an exception executing onHalfClose, we don't expect other lifecycle // commands to succeed. Accordingly, we close the span span.error(e); span.finish(); throw e; } finally { scope.close(); } }
@Override public void onReady() { SpanInScope scope = tracer.withSpanInScope(span); try { // retrolambda can't resolve this try/finally delegate().onReady(); } finally { scope.close(); } } }
@Override public void onComplete() { SpanInScope scope = tracer.withSpanInScope(span); try { // retrolambda can't resolve this try/finally delegate().onComplete(); } finally { scope.close(); } }
@Override public void onCancel() { SpanInScope scope = tracer.withSpanInScope(span); try { // retrolambda can't resolve this try/finally delegate().onCancel(); } finally { scope.close(); } }
@Override public void onMessage(ReqT message) { SpanInScope scope = tracer.withSpanInScope(span); try { // retrolambda can't resolve this try/finally parser.onMessageReceived(message, span.customizer()); delegate().onMessage(message); } finally { scope.close(); } }