public void cancelDownstreamRequest(Throwable reason) { if (streamingCallback != null) streamingCallback.cancelStreamingToOriginalCaller(); // Do nothing else if a StreamingChannel was never started. if (streamingChannelCompletableFuture == null) return; streamingChannelCompletableFuture.whenComplete((sc, error) -> { if (sc != null) { // A StreamingChannel was created. Tell it to stop if it's still going. if (sc.isDownstreamCallActive()) sc.closeChannelDueToUnrecoverableError(reason); } }); }
callback.unrecoverableErrorOccurred(cause, true);
callback.unrecoverableErrorOccurred(cause, true);
callback.unrecoverableErrorOccurred(errorToFire, false); callback.unrecoverableErrorOccurred(errorToFire, false);
if (throwable != null) { callback.unrecoverableErrorOccurred(throwable, true); ctx ).run(); callback.unrecoverableErrorOccurred(channelClosedException, true); callback.unrecoverableErrorOccurred(cause, true); callback.unrecoverableErrorOccurred(circuitBreakerException, true); callback.unrecoverableErrorOccurred(t, true);
callback.unrecoverableErrorOccurred(errorToFire, false); callback.unrecoverableErrorOccurred(errorToFire, false);
if (throwable != null) { callback.unrecoverableErrorOccurred(throwable, true); ctx ).run(); callback.unrecoverableErrorOccurred(channelClosedException, true); callback.unrecoverableErrorOccurred(cause, true); callback.unrecoverableErrorOccurred(circuitBreakerException, true); callback.unrecoverableErrorOccurred(t, true);
callback.messageReceived(msgToPass);
callback.messageReceived(msgToPass);
public void cancelDownstreamRequest(Throwable reason) { if (streamingCallback != null) streamingCallback.cancelStreamingToOriginalCaller(); // Do nothing else if a StreamingChannel was never started. if (streamingChannelCompletableFuture == null) return; streamingChannelCompletableFuture.whenComplete((sc, error) -> { if (sc != null) { // A StreamingChannel was created. Tell it to stop if it's still going. if (sc.isDownstreamCallActive()) sc.closeChannelDueToUnrecoverableError(reason); } }); }