Class/Object

org.squbs.streams

RetrySettings

Related Docs: object RetrySettings | package streams

Permalink

case class RetrySettings[In, Out, Context] extends Product with Serializable

A Retry Settings class for configuring a Retry

Retry functionality requires each element passing through is uniquely identifiable for retrying, so it requires a Context, of any type carried along with the flow's input and output element as a Tuple2 (Scala) or Pair (Java). The requirement is that either the Context type itself or a mapping from Context should be able to uniquely identify each element passing through flow.

Here are the ways a unique id can be provided:

uniqueIdMapper
In

the type of elements pulled from upstream along with the Context

Out

the type of the elements that are pushed to downstream along with the Context

Context

the type of the context that is carried along with the elements.

returns

a RetrySettings with specified values

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RetrySettings
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val delay: FiniteDuration

    Permalink

    to delay between retrying each failed element.

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. val exponentialBackoffFactor: Double

    Permalink

    exponential amount the delay duration will be increased upon each retry

  9. val failureDecider: Option[(Try[Out]) ⇒ Boolean]

    Permalink

    function to determine if an element passed by the joined Flow is actually a failure or not

  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. val max: Int

    Permalink

    maximum number of retry attempts on any failures before giving up.

  14. val maxDelay: FiniteDuration

    Permalink

    maximum delay duration for retry.

  15. val maxWaitingRetries: Option[Int]

    Permalink

    maximum number of elements waiting to be retried.

    maximum number of elements waiting to be retried. Defaults to stream internal buffer size.

  16. val metricRegistry: Option[MetricRegistry]

    Permalink
  17. val name: String

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. val uniqueIdMapper: Option[(Context) ⇒ Any]

    Permalink

    function that maps Context to a unique id

  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def withDelay(delay: FiniteDuration): RetrySettings[In, Out, Context]

    Permalink
  27. def withExponentialBackoff(exponentialBackoffFactor: Double): RetrySettings[In, Out, Context]

    Permalink
  28. def withFailureDecider(failureDecider: Function[Try[Out], Boolean]): RetrySettings[In, Out, Context]

    Permalink

    Java API

  29. def withFailureDecider(failureDecider: (Try[Out]) ⇒ Boolean): RetrySettings[In, Out, Context]

    Permalink
  30. def withMaxDelay(maxDelay: FiniteDuration): RetrySettings[In, Out, Context]

    Permalink
  31. def withMaxWaitingRetries(max: Int): RetrySettings[In, Out, Context]

    Permalink
  32. def withMetrics(name: String)(implicit system: ActorSystem): RetrySettings[In, Out, Context]

    Permalink
  33. def withUniqueIdMapper(uniqueIdMapper: (Context) ⇒ Any): RetrySettings[In, Out, Context]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped