Returns true
if the Retry
is a Failure
otherwise it returns false
.
Applies the given function f
if this is a Success
, otherwise returns Unit
if this is a Failure
.
Returns the computation value in case of a Success
.
Returns the computation value in case of a Success
.
In case of a Failure
it throws the underlying exception.
Returns true
if the Retry
is a Failure
otherwise it returns false
.
Returns true
if the Retry
is a Success
otherwise it returns false
otherwise.
Maps the given function to the value from this Success
or returns this if this is a Failure
.
Applies the given function f
if this is a Failure
, otherwise returns this if this is a Success
.
Transforms the Retry
value by applying a transformation function to its underlying value
Returns the computation value in case of a Success
.
Returns the computation value in case of a Success
. Otherwise it is returning the provided default.
The
Retry
type represents a computation that is retrying itself in case of an exception. It uses aRetryStrategy
as a policy for the retry operation.The result may be successful consisting of the computation result value or a failure that is wrapping the underlying exception. The type is similar to the scala scala.util.Try type.
Example: