Class ServerStreamingAttemptException

  • All Implemented Interfaces:
    java.io.Serializable

    @InternalApi
    public class ServerStreamingAttemptException
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      ServerStreamingAttemptException​(java.lang.Throwable cause, boolean canResume, boolean seenResponses)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canResume()
      If the StreamResumptionStrategy supports resuming after this error.
      boolean hasSeenResponses()
      If the current RPC attempt has seen any streamed messages.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ServerStreamingAttemptException

        public ServerStreamingAttemptException​(java.lang.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.