package termination
The atmos.termination
package provides common implementations of the atmos.TerminationPolicy trait.
- Alphabetic
- By Inheritance
- termination
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
LimitAttempts
(maxAttempts: Int = defaultMaxAttempts) extends TerminationPolicy with Product with Serializable
A termination policy that limits the number of attempts made.
A termination policy that limits the number of attempts made.
- maxAttempts
The maximum number of attempts that can be performed.
-
case class
LimitDuration
(maxDuration: FiniteDuration = defaultMaxDuration) extends TerminationPolicy with Product with Serializable
A termination policy that limits the amount of time spent retrying.
A termination policy that limits the amount of time spent retrying.
- maxDuration
The maximum duration that a retry operation should not exceed.
-
case class
RequireBoth
(first: TerminationPolicy, second: TerminationPolicy) extends TerminationPolicy with Product with Serializable
A termination policy that signals for termination after both of the specified policies terminate.
A termination policy that signals for termination after both of the specified policies terminate.
- first
The first of the two policies that must signal for termination.
- second
The second of the two policies that must signal for termination.
-
case class
RequireEither
(first: TerminationPolicy, second: TerminationPolicy) extends TerminationPolicy with Product with Serializable
A termination policy that signals for termination after either of the specified policies terminate.
A termination policy that signals for termination after either of the specified policies terminate.
- first
The first of the two policies that may signal for termination.
- second
The second of the two policies that may signal for termination.
Value Members
-
val
defaultMaxAttempts: Int
The default maximum number of attempts that can be performed.
-
val
defaultMaxDuration: FiniteDuration
The default maximum duration that a retry operation should not exceed.
-
object
AlwaysTerminate
extends TerminationPolicy with Product with Serializable
A termination policy that always signals for termination.
-
object
NeverTerminate
extends TerminationPolicy with Product with Serializable
A termination policy that never signals for termination.