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 byServerStreamingAttemptCallable
to communicate additional context to theStreamingRetryAlgorithm
and 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 boolean
canResume()
If theStreamResumptionStrategy
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
-
-
-
-
Constructor Detail
-
ServerStreamingAttemptException
public ServerStreamingAttemptException(Throwable cause, boolean canResume, boolean seenResponses)
-
-
Method Detail
-
canResume
public boolean canResume()
If theStreamResumptionStrategy
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 byStreamingRetryAlgorithm
to reset timers.
-
-