@InternalApi public class ServerStreamingAttemptException extends RuntimeException
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.
| Constructor and Description |
|---|
ServerStreamingAttemptException(Throwable cause,
boolean canResume,
boolean seenResponses) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canResume()
If the
StreamResumptionStrategy supports resuming after this error. |
boolean |
hasSeenResponses()
If the current RPC attempt has seen any streamed messages.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServerStreamingAttemptException(Throwable cause, boolean canResume, boolean seenResponses)
public boolean canResume()
StreamResumptionStrategy supports resuming after this error.public boolean hasSeenResponses()
StreamingRetryAlgorithm to reset timers.