PgRetryOptions class
Opções de nova tentativa (run/runTx da API v3 e de
PostgreSQLPool).
Constructors
Properties
- backoffFactor → double
-
Fator de multiplicação da espera a cada nova tentativa.
final
- delay → Duration
-
Espera antes da segunda execução.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxAttempts → int
-
Número máximo de execuções (incluindo a primeira).
final
- maxDelay → Duration
-
Espera máxima entre tentativas.
final
- retryIf → bool Function(Object error)?
-
Decide se um erro deve provocar nova tentativa. Por padrão,
defaultRetryIf.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
retry<
R> (Future< R> body()) → Future<R> -
Executa
body, repetindo conforme estas opções. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
defaultRetryIf(
Object error) → bool - Repete em falha de serialização (SQLSTATE 40001) e deadlock (40P01).