Exception ServerAttemptException (2.43.0)

public class ServerAttemptException extends RuntimeException

A wrapper exception thrown by ServerAttemptCallable to communicate additional context to the RetryAlgorithm and to pass the original cancellation stack trace to RetryingServerCallable.

For - public for technical reasons.

Constructors

ServerAttemptException(Throwable cause, boolean canResume, boolean seenResponses)

public ServerAttemptException(Throwable cause, boolean canResume, boolean seenResponses)
Parameters
NameDescription
causeThrowable
canResumeboolean
seenResponsesboolean

Methods

canResume()

public boolean canResume()

If the StreamResumptionStrategy supports resuming after this error.

Returns
TypeDescription
boolean

hasSeenResponses()

public boolean hasSeenResponses()

If the current RPC attempt has seen any streamed messages. This is used as a signal by RetryAlgorithm to reset timers.

Returns
TypeDescription
boolean