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
@InternalApi public class ServerStreamingAttemptException extends RuntimeException
A wrapper exception thrown byServerStreamingAttemptCallableto communicate additional context to theStreamingRetryAlgorithmand to pass the original cancellation stack trace toRetryingServerStreamingCallable.For internal use only - public for technical reasons.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerStreamingAttemptException(Throwable cause, boolean canResume, boolean seenResponses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanResume()If theStreamResumptionStrategysupports resuming after this error.booleanhasSeenResponses()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
-
-
-
-
Constructor Detail
-
ServerStreamingAttemptException
public ServerStreamingAttemptException(Throwable cause, boolean canResume, boolean seenResponses)
-
-
Method Detail
-
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.
-
-