@InterfaceAudience.Private @InterfaceStability.Unstable public class Retries extends Object
Annotations to inform the caller of an annotated method whether
the method performs retries and/or exception translation internally.
Callers should use this information to inform their own decisions about
performing retries or exception translation when calling the method. For
example, if a method is annotated RetryTranslated
, the caller
MUST NOT perform another layer of retries. Similarly, the caller shouldn't
perform another layer of exception translation.
Declaration for documentation only.
This is purely for visibility in source and is currently package-scoped.
Compare with AtMostOnce
and Idempotent
; these are real
markers used by Hadoop RPC.
Modifier and Type | Class and Description |
---|---|
static interface |
Retries.OnceExceptionsSwallowed
One attempt, Exceptions are swallowed.
|
static interface |
Retries.OnceMixed
No retry, expect a bit of both.
|
static interface |
Retries.OnceRaw
No retry, exceptions are not translated.
|
static interface |
Retries.OnceTranslated
No retry, exceptions are translated.
|
static interface |
Retries.RetryExceptionsSwallowed
Retried, Exceptions are swallowed.
|
static interface |
Retries.RetryMixed
Retried, mixed translation.
|
static interface |
Retries.RetryRaw
Retried, no translation.
|
static interface |
Retries.RetryTranslated
Retried, exceptions are translated.
|
Constructor and Description |
---|
Retries() |
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.