wvlet
.
airframe
.
control
Retry
Related Doc:
package control
object
Retry
extends
LogSupport
Retry logic implementation helper
Linear Supertypes
LogSupport
,
LazyLogger
,
LoggingMethods
,
Serializable
,
Serializable
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
Retry
LogSupport
LazyLogger
LoggingMethods
Serializable
Serializable
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Type Members
case class
AddExtraRetryWait
(
extraWaitMillis:
Int
)
extends
Product
with
Serializable
class
ExponentialBackOff
extends
RetryPolicy
class
Jitter
extends
RetryPolicy
case class
MaxRetryException
(
retryContext:
RetryContext
)
extends
Exception
with
Product
with
Serializable
case class
RetryContext
(
context:
Option
[
Any
]
,
lastError:
Throwable
,
retryCount:
Int
,
maxRetry:
Int
,
retryWaitStrategy:
RetryPolicy
,
nextWaitMillis:
Int
,
baseWaitMillis:
Int
,
resultClassifier: (
Any
) ⇒
ResultClass
=
ResultClass.ALWAYS_SUCCEED
,
errorClassifier: (
Throwable
) ⇒
ResultClass
=
ResultClass.ALWAYS_RETRY
,
beforeRetryAction: (
RetryContext
) ⇒
Any
=
REPORT_RETRY_COUNT
)
extends
Product
with
Serializable
trait
RetryPolicy
extends
AnyRef
case class
RetryPolicyConfig
(
initialIntervalMillis:
Int
=
100
,
maxIntervalMillis:
Int
=
15000
,
multiplier:
Double
=
1.5
)
extends
Product
with
Serializable
case class
RetryableFailure
(
e:
Throwable
)
extends
Exception
with
Product
with
Serializable
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
object
NOT_STARTED
extends
Exception
with
Product
with
Serializable
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
macro
def
debug
(
message:
Any
,
cause:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
LoggingMethods
macro
def
debug
(
message:
Any
)
:
Unit
Attributes
protected
Definition Classes
LoggingMethods
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
macro
def
error
(
message:
Any
,
cause:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
LoggingMethods
macro
def
error
(
message:
Any
)
:
Unit
Attributes
protected
Definition Classes
LoggingMethods
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
macro
def
info
(
message:
Any
,
cause:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
LoggingMethods
macro
def
info
(
message:
Any
)
:
Unit
Attributes
protected
Definition Classes
LoggingMethods
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
macro
def
logAt
(
logLevel:
LogLevel
,
message:
Any
)
:
Unit
Attributes
protected
Definition Classes
LoggingMethods
lazy val
logger
:
Logger
Attributes
protected[this]
Definition Classes
LazyLogger
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
nonRetryableFailure
(
e:
Throwable
)
:
Failed
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
retryableFailure
(
e:
Throwable
)
:
Failed
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
macro
def
trace
(
message:
Any
,
cause:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
LoggingMethods
macro
def
trace
(
message:
Any
)
:
Unit
Attributes
protected
Definition Classes
LoggingMethods
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
macro
def
warn
(
message:
Any
,
cause:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
LoggingMethods
macro
def
warn
(
message:
Any
)
:
Unit
Attributes
protected
Definition Classes
LoggingMethods
def
withBackOff
(
maxRetry:
Int
=
3
,
initialIntervalMillis:
Int
=
100
,
maxIntervalMillis:
Int
=
15000
,
multiplier:
Double
=
1.5
)
:
RetryContext
def
withJitter
(
maxRetry:
Int
=
3
,
initialIntervalMillis:
Int
=
100
,
maxIntervalMillis:
Int
=
15000
,
multiplier:
Double
=
1.5
)
:
RetryContext
Inherited from
LogSupport
Inherited from
LazyLogger
Inherited from
LoggingMethods
Inherited from
Serializable
Inherited from
Serializable
Inherited from
AnyRef
Inherited from
Any
Ungrouped
Retry logic implementation helper