final case class Success[+T](value: T) extends Retry[T] with Product with Serializable
- Alphabetic
- By Inheritance
- Success
- Serializable
- Serializable
- Product
- Equals
- Retry
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Success(value: T)
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMap[S](f: (T) ⇒ Retry[S]): Retry[S]
Returns
true
if theRetry
is aFailure
otherwise it returnsfalse
. -
def
foreach[X](f: (T) ⇒ X): Unit
Applies the given function
f
if this is aSuccess
, otherwise returnsUnit
if this is aFailure
. -
def
get: T
Returns the computation value in case of a
Success
. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getOrElse[U >: T](default: ⇒ U): U
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.- Definition Classes
- Retry
-
def
isFailure: Boolean
Returns
true
if theRetry
is aFailure
otherwise it returnsfalse
. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSuccess: Boolean
Returns
true
if theRetry
is aSuccess
otherwise it returnsfalse
otherwise. -
def
map[S](f: (T) ⇒ S)(implicit strategy: RetryStrategy): Retry[S]
Maps the given function to the value from this
Success
or returns this if this is aFailure
. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
recover[X >: T](f: PartialFunction[Throwable, X]): Retry[X]
Applies the given function
f
if this is aFailure
, otherwise returns this if this is aSuccess
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
transform[X](f: (T) ⇒ X): X
Transforms the
Retry
value by applying a transformation function to its underlying value - val value: T
-
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( ... )