Class ServerStreamingAttemptException

  • All Implemented Interfaces:
    Serializable

    @InternalApi
    public class ServerStreamingAttemptException
    extends RuntimeException
    A wrapper exception thrown by ServerStreamingAttemptCallable to communicate additional context to the StreamingRetryAlgorithm and to pass the original cancellation stack trace to RetryingServerStreamingCallable.

    For internal use only - public for technical reasons.

    See Also:
    Serialized Form
    • Constructor Detail

      • ServerStreamingAttemptException

        public ServerStreamingAttemptException​(Throwable cause,
                                               boolean canResume,
                                               boolean seenResponses)
    • Method Detail

      • hasSeenResponses

        public boolean hasSeenResponses()
        If the current RPC attempt has seen any streamed messages. This is used as a signal by StreamingRetryAlgorithm to reset timers.