case class RxOptionCacheOp[A](input: RxCache[Option[A]]) extends RxOptionCache[A] with Product with Serializable
- Alphabetic
- By Inheritance
- RxOptionCacheOp
- Serializable
- Serializable
- Product
- Equals
- RxOptionCache
- RxOption
- RxOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
await: Option[A]
Await the completion of the first Rx result.
Await the completion of the first Rx result. This method is available only in Scala JVM.
Note: Generally speaking, blocking operations should be avoided in reactive programming. Use this method only for testing purpose. Both airframe-http and AirSpec supports evaluating Rx[X] result (async) in a non-blocking way.
- returns
the result
- Definition Classes
- RxOps
-
def
cache[A1 >: A]: RxOptionCache[A1]
- Definition Classes
- RxOption
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
expireAfterWrite(time: Long, unit: TimeUnit): RxOptionCache[A]
- Definition Classes
- RxOptionCacheOp → RxOptionCache
-
def
filter(f: (A) ⇒ Boolean): RxOption[A]
- Definition Classes
- RxOption
-
def
flatMap[B](f: (A) ⇒ RxOps[B]): RxOption[B]
- Definition Classes
- RxOption
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
getCurrent: Option[A]
- Definition Classes
- RxOptionCacheOp → RxOptionCache
-
def
getOrElse[A1 >: A](default: ⇒ A1): Rx[A1]
- Definition Classes
- RxOption
-
def
getOrElseRx[A1 >: A](default: ⇒ RxOps[A1]): Rx[A1]
- Definition Classes
- RxOption
-
def
in: Rx[Option[A]]
- Attributes
- protected
- Definition Classes
- RxOptionCacheOp → RxOption
- val input: RxCache[Option[A]]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
join[B, C, D, E](b: RxOps[B], c: RxOps[C], d: RxOps[D], e: RxOps[E]): Rx[(Option[A], B, C, D, E)]
- Definition Classes
- RxOption
-
def
join[B, C, D](b: RxOps[B], c: RxOps[C], d: RxOps[D]): Rx[(Option[A], B, C, D)]
- Definition Classes
- RxOption
-
def
join[B, C](b: RxOps[B], c: RxOps[C]): Rx[(Option[A], B, C)]
- Definition Classes
- RxOption
-
def
join[B](b: RxOps[B]): Rx[(Option[A], B)]
- Definition Classes
- RxOption
-
def
map[B](f: (A) ⇒ B): RxOption[B]
- Definition Classes
- RxOption
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
orElse[A1 >: A](default: ⇒ Option[A1]): RxOption[A1]
- Definition Classes
- RxOption
-
def
parents: Seq[RxOps[_]]
- Definition Classes
- RxOptionCacheOp → RxOps
-
def
recover[U](f: PartialFunction[Throwable, U]): Rx[U]
Recover from a known error and emit a replacement value
Recover from a known error and emit a replacement value
- Definition Classes
- RxOps
-
def
recoverWith[A](f: PartialFunction[Throwable, RxOps[A]]): Rx[A]
Recover from a known error and emit replacement values from a given Rx
Recover from a known error and emit replacement values from a given Rx
- Definition Classes
- RxOps
-
def
run[U](effect: (Option[A]) ⇒ U = Rx.doNothing): Cancelable
Evaluate this Rx[A] and apply the given effect function.
Evaluate this Rx[A] and apply the given effect function. Once OnError(e) or OnCompletion is observed, it will stop the evaluation.
- Definition Classes
- RxOps
-
def
runContinuously[U](effect: (Option[A]) ⇒ U = Rx.doNothing): Cancelable
Keep evaluating Rx[A] even if OnError(e) or OnCompletion is reported.
Keep evaluating Rx[A] even if OnError(e) or OnCompletion is reported. This is useful for keep processing streams.
- Definition Classes
- RxOps
-
def
subscribe[U](subscriber: (Option[A]) ⇒ U = Rx.doNothing): Cancelable
- Definition Classes
- RxOps
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tap(f: (Option[A]) ⇒ Unit): Rx[Option[A]]
Applies
fto the value for having a side effect, and return the original value. -
def
tapOn(f: PartialFunction[Try[Option[A]], Unit]): Rx[Option[A]]
Applies
fto the value for having a side effect, and return the original value.Applies
fto the value for having a side effect, and return the original value.This method is useful for debugging Rx chains. For example:
rx.tapOn { case Success(v) => debug(s"received ${v}") case Failure(e) => error(s"request failed", e) }- f
partial function for the side effect
- returns
the original Rx event
- Definition Classes
- RxOps
-
def
tapOnFailure(f: (Throwable) ⇒ Unit): Rx[Option[A]]
Applies
fto the error if it happens, and return the original value.Applies
fto the error if it happens, and return the original value.This method is useful for logging the error.
- f
side-effect function used when observing an error
- returns
the original Rx event
- Definition Classes
- RxOps
- def toRx: Rx[Option[A]]
-
def
transform[B](f: (Option[A]) ⇒ B): Rx[B]
- Definition Classes
- RxOption
-
def
transformOption[B](f: (Option[A]) ⇒ Option[B]): RxOption[B]
- Definition Classes
- RxOption
-
def
transformRx[B](f: (Option[A]) ⇒ RxOps[B]): Rx[B]
- Definition Classes
- RxOption
-
def
transformRxOption[B](f: (Option[A]) ⇒ RxOption[B]): RxOption[B]
- Definition Classes
- RxOption
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
when(cond: (A) ⇒ Boolean): RxOption[A]
An alias for filter
An alias for filter
- Definition Classes
- RxOption
-
def
withFilter(f: (A) ⇒ Boolean): RxOption[A]
- Definition Classes
- RxOption
-
def
withTicker(ticker: Ticker): RxOptionCache[A]
- Definition Classes
- RxOptionCacheOp → RxOptionCache
-
def
zip[B, C, D, E](b: RxOps[B], c: RxOps[C], d: RxOps[D], e: RxOps[E]): Rx[(Option[A], B, C, D, E)]
- Definition Classes
- RxOption
-
def
zip[B, C, D](b: RxOps[B], c: RxOps[C], d: RxOps[D]): Rx[(Option[A], B, C, D)]
- Definition Classes
- RxOption
-
def
zip[B, C](b: RxOps[B], c: RxOps[C]): Rx[(Option[A], B, C)]
- Definition Classes
- RxOption
-
def
zip[B](b: RxOps[B]): Rx[(Option[A], B)]
- Definition Classes
- RxOption
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated