Class ServerStreamingAttemptException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.api.gax.retrying.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:
  • Constructor Details

    • ServerStreamingAttemptException

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

    • canResume

      public boolean canResume()
      If the StreamResumptionStrategy supports resuming after this error.
    • 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.