@@ -310,7 +310,7 @@ public void cancel() {
310310 if (isOutboundTerminated ) {
311311 final RequestInterceptor interceptor = requestInterceptor ;
312312 if (interceptor != null ) {
313- interceptor .onTerminate (streamId , null );
313+ interceptor .onTerminate (streamId , FrameType . REQUEST_CHANNEL , null );
314314 }
315315 }
316316 }
@@ -337,7 +337,7 @@ public final void handleCancel() {
337337
338338 final RequestInterceptor interceptor = this .requestInterceptor ;
339339 if (interceptor != null ) {
340- interceptor .onCancel (this .streamId );
340+ interceptor .onCancel (this .streamId , FrameType . REQUEST_CHANNEL );
341341 }
342342 return ;
343343 }
@@ -349,7 +349,7 @@ public final void handleCancel() {
349349
350350 final RequestInterceptor interceptor = this .requestInterceptor ;
351351 if (interceptor != null ) {
352- interceptor .onCancel (this .streamId );
352+ interceptor .onCancel (this .streamId , FrameType . REQUEST_CHANNEL );
353353 }
354354 }
355355
@@ -464,7 +464,7 @@ public final void handleError(Throwable t) {
464464
465465 final RequestInterceptor interceptor = requestInterceptor ;
466466 if (interceptor != null ) {
467- interceptor .onTerminate (this .streamId , t );
467+ interceptor .onTerminate (this .streamId , FrameType . REQUEST_CHANNEL , t );
468468 }
469469 }
470470
@@ -490,7 +490,7 @@ public void handleComplete() {
490490 if (isOutboundTerminated ) {
491491 final RequestInterceptor interceptor = this .requestInterceptor ;
492492 if (interceptor != null ) {
493- interceptor .onTerminate (this .streamId , null );
493+ interceptor .onTerminate (this .streamId , FrameType . REQUEST_CHANNEL , null );
494494 }
495495 }
496496 }
@@ -514,7 +514,7 @@ public void handleNext(ByteBuf frame, boolean hasFollows, boolean isLastPayload)
514514 } else if (isOutboundTerminated (previousState )) {
515515 final RequestInterceptor interceptor = this .requestInterceptor ;
516516 if (interceptor != null ) {
517- interceptor .onTerminate (this .streamId , t );
517+ interceptor .onTerminate (this .streamId , FrameType . REQUEST_CHANNEL , t );
518518 }
519519
520520 Operators .onErrorDropped (t , this .inboundSubscriber .currentContext ());
@@ -530,7 +530,7 @@ public void handleNext(ByteBuf frame, boolean hasFollows, boolean isLastPayload)
530530
531531 final RequestInterceptor interceptor = requestInterceptor ;
532532 if (interceptor != null ) {
533- interceptor .onTerminate (streamId , t );
533+ interceptor .onTerminate (streamId , FrameType . REQUEST_CHANNEL , t );
534534 }
535535 return ;
536536 }
@@ -572,7 +572,7 @@ public void handleNext(ByteBuf frame, boolean hasFollows, boolean isLastPayload)
572572 } else if (isOutboundTerminated (previousState )) {
573573 final RequestInterceptor interceptor = this .requestInterceptor ;
574574 if (interceptor != null ) {
575- interceptor .onTerminate (this .streamId , e );
575+ interceptor .onTerminate (this .streamId , FrameType . REQUEST_CHANNEL , e );
576576 }
577577
578578 Operators .onErrorDropped (e , this .inboundSubscriber .currentContext ());
@@ -591,7 +591,7 @@ public void handleNext(ByteBuf frame, boolean hasFollows, boolean isLastPayload)
591591
592592 final RequestInterceptor interceptor = this .requestInterceptor ;
593593 if (interceptor != null ) {
594- interceptor .onTerminate (streamId , e );
594+ interceptor .onTerminate (streamId , FrameType . REQUEST_CHANNEL , e );
595595 }
596596
597597 return ;
@@ -620,7 +620,7 @@ public void handleNext(ByteBuf frame, boolean hasFollows, boolean isLastPayload)
620620 } else if (isOutboundTerminated (previousState )) {
621621 final RequestInterceptor interceptor = this .requestInterceptor ;
622622 if (interceptor != null ) {
623- interceptor .onTerminate (this .streamId , t );
623+ interceptor .onTerminate (this .streamId , FrameType . REQUEST_CHANNEL , t );
624624 }
625625
626626 Operators .onErrorDropped (t , this .inboundSubscriber .currentContext ());
@@ -638,7 +638,7 @@ public void handleNext(ByteBuf frame, boolean hasFollows, boolean isLastPayload)
638638
639639 final RequestInterceptor interceptor = requestInterceptor ;
640640 if (interceptor != null ) {
641- interceptor .onTerminate (streamId , t );
641+ interceptor .onTerminate (streamId , FrameType . REQUEST_CHANNEL , t );
642642 }
643643
644644 return ;
@@ -690,7 +690,7 @@ public void onNext(Payload p) {
690690
691691 final RequestInterceptor interceptor = this .requestInterceptor ;
692692 if (interceptor != null ) {
693- interceptor .onTerminate (streamId , e );
693+ interceptor .onTerminate (streamId , FrameType . REQUEST_CHANNEL , e );
694694 }
695695
696696 Operators .onErrorDropped (e , this .inboundSubscriber .currentContext ());
@@ -705,7 +705,7 @@ public void onNext(Payload p) {
705705
706706 final RequestInterceptor interceptor = this .requestInterceptor ;
707707 if (interceptor != null ) {
708- interceptor .onTerminate (streamId , e );
708+ interceptor .onTerminate (streamId , FrameType . REQUEST_CHANNEL , e );
709709 }
710710 return ;
711711 }
@@ -720,7 +720,7 @@ public void onNext(Payload p) {
720720 } else if (isOutboundTerminated (previousState )) {
721721 final RequestInterceptor interceptor = this .requestInterceptor ;
722722 if (interceptor != null ) {
723- interceptor .onTerminate (streamId , e );
723+ interceptor .onTerminate (streamId , FrameType . REQUEST_CHANNEL , e );
724724 }
725725
726726 Operators .onErrorDropped (e , this .inboundSubscriber .currentContext ());
@@ -736,7 +736,7 @@ public void onNext(Payload p) {
736736
737737 final RequestInterceptor interceptor = requestInterceptor ;
738738 if (interceptor != null ) {
739- interceptor .onTerminate (streamId , e );
739+ interceptor .onTerminate (streamId , FrameType . REQUEST_CHANNEL , e );
740740 }
741741 return ;
742742 }
@@ -749,7 +749,7 @@ public void onNext(Payload p) {
749749 long previousState = this .tryTerminate (false );
750750 final RequestInterceptor interceptor = requestInterceptor ;
751751 if (interceptor != null && !isTerminated (previousState )) {
752- interceptor .onTerminate (streamId , t );
752+ interceptor .onTerminate (streamId , FrameType . REQUEST_CHANNEL , t );
753753 }
754754 }
755755 }
@@ -810,7 +810,7 @@ && isFirstFrameSent(previousState)
810810
811811 final RequestInterceptor interceptor = this .requestInterceptor ;
812812 if (interceptor != null ) {
813- interceptor .onTerminate (streamId , t );
813+ interceptor .onTerminate (streamId , FrameType . REQUEST_CHANNEL , t );
814814 }
815815 }
816816
@@ -840,7 +840,7 @@ public void onComplete() {
840840 if (isInboundTerminated ) {
841841 final RequestInterceptor interceptor = this .requestInterceptor ;
842842 if (interceptor != null ) {
843- interceptor .onTerminate (streamId , null );
843+ interceptor .onTerminate (streamId , FrameType . REQUEST_CHANNEL , null );
844844 }
845845 }
846846 }
0 commit comments