Package com.google.api.gax.retrying
Class ServerStreamingAttemptException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.api.gax.retrying.ServerStreamingAttemptException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionServerStreamingAttemptException(Throwable cause, boolean canResume, boolean seenResponses) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf theStreamResumptionStrategysupports resuming after this error.booleanIf 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
-
Constructor Details
-
ServerStreamingAttemptException
-
-
Method Details
-
canResume
public boolean canResume()If theStreamResumptionStrategysupports resuming after this error. -
hasSeenResponses
public boolean hasSeenResponses()If the current RPC attempt has seen any streamed messages. This is used as a signal byStreamingRetryAlgorithmto reset timers.
-