Class

wvlet.airframe.rx

RxVar

Related Doc: package rx

Permalink

class RxVar[A] extends RxStream[A] with RxVarOps[A]

A reactive variable supporting update and propagation of the updated value to the chained operators

Linear Supertypes
RxVarOps[A], RxStream[A], LogSupport, LazyLogger, LoggingMethods, Serializable, Serializable, Rx[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RxVar
  2. RxVarOps
  3. RxStream
  4. LogSupport
  5. LazyLogger
  6. LoggingMethods
  7. Serializable
  8. Serializable
  9. Rx
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RxVar(currentValue: A)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def :=(newValue: A): Unit

    Permalink
    Definition Classes
    RxVarOps
  4. final def ==(arg0: Any): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  7. def concat[A1 >: A](other: Rx[A1]): RxStream[A1]

    Permalink
    Definition Classes
    RxStream
  8. macro def debug(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  9. macro def debug(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. macro def error(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  13. macro def error(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  14. def filter(f: (A) ⇒ Boolean): RxStream[A]

    Permalink
    Definition Classes
    RxStream
  15. def flatMap[B](f: (A) ⇒ Rx[B]): RxStream[B]

    Permalink
    Definition Classes
    RxStream
  16. def forceSet(newValue: A): Unit

    Permalink
    Definition Classes
    RxVarOps
  17. def forceUpdate(updater: (A) ⇒ A): Unit

    Permalink

    Update the variable and force notification to subscribers

    Update the variable and force notification to subscribers

    Definition Classes
    RxVarOps
  18. def foreach[U](f: (A) ⇒ U): Cancelable

    Permalink
    Definition Classes
    RxVarRxVarOps
  19. def get: A

    Permalink
    Definition Classes
    RxVarRxVarOps
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  22. macro def info(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  23. macro def info(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def join[B, C, D](b: Rx[B], c: Rx[C], d: Rx[D]): RxStream[(A, B, C, D)]

    Permalink
    Definition Classes
    RxStream
  26. def join[B, C](b: Rx[B], c: Rx[C]): RxStream[(A, B, C)]

    Permalink
    Definition Classes
    RxStream
  27. def join[B](other: Rx[B]): RxStream[(A, B)]

    Permalink

    Emit a new output if one of Rx[A] or Rx[B] is changed.

    Emit a new output if one of Rx[A] or Rx[B] is changed.

    This method is useful when you need to monitor multiple Rx objects.

    Using joins will be more intuitive than nesting multiple Rx operators like Rx[A].map { x => ... Rx[B].map { ...} }.

    Definition Classes
    RxStream
  28. def lastOption: RxOption[A]

    Permalink
    Definition Classes
    RxStream
  29. macro def logAt(logLevel: LogLevel, message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  30. lazy val logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  31. def map[B](f: (A) ⇒ B): RxStream[B]

    Permalink
    Definition Classes
    RxStream
  32. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  35. def parents: Seq[Rx[_]]

    Permalink
    Definition Classes
    RxVarRx
  36. def recover[U](f: PartialFunction[Throwable, U]): RxStream[U]

    Permalink

    Recover from a known error and emit a replacement value

    Recover from a known error and emit a replacement value

    Definition Classes
    Rx
  37. def recoverWith[A](f: PartialFunction[Throwable, Rx[A]]): RxStream[A]

    Permalink

    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
    Rx
  38. def run[U](effect: (A) ⇒ U): Cancelable

    Permalink

    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
    Rx
  39. def runContinuously[U](effect: (A) ⇒ U): Cancelable

    Permalink

    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
    Rx
  40. def sample(timeWindow: Long, unit: TimeUnit = TimeUnit.MILLISECONDS): RxStream[A]

    Permalink

    Emit the most recent item of the source within periodic time intervals.

    Emit the most recent item of the source within periodic time intervals.

    Definition Classes
    RxStream
  41. def set(newValue: A): Unit

    Permalink
    Definition Classes
    RxVarOps
  42. def subscribe[U](subscriber: (A) ⇒ U): Cancelable

    Permalink
    Definition Classes
    Rx
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. def take(n: Long): RxStream[A]

    Permalink

    Take an event up to n elements.

    Take an event up to n elements. This may receive fewer events than n if the upstream operator completes before generating n elements.

    Definition Classes
    RxStream
  45. def throttleFirst(timeWindow: Long, unit: TimeUnit = TimeUnit.MILLISECONDS): RxStream[A]

    Permalink

    Emit the first item of the source within each sampling period.

    Emit the first item of the source within each sampling period. This is useful, for example, to prevent double-clicks of buttons.

    Definition Classes
    RxStream
  46. def throttleLast(timeWindow: Long, unit: TimeUnit = TimeUnit.MILLISECONDS): RxStream[A]

    Permalink

    Emit the most recent item of the source within periodic time intervals.

    Emit the most recent item of the source within periodic time intervals.

    Definition Classes
    RxStream
  47. def toOption[X, A1 >: A](implicit ev: <:<[A1, Option[X]]): RxOptionVar[X]

    Permalink
    Definition Classes
    RxVarRxStream
  48. def toRxStream: RxStream[A]

    Permalink
    Definition Classes
    RxStreamRx
  49. def toSeq: Seq[A]

    Permalink

    Materialize the stream as Seq[A].

    Materialize the stream as Seq[A]. This works only for the finite stream and for Scala JVM.

    Definition Classes
    Rx
  50. def toString(): String

    Permalink
    Definition Classes
    RxVar → AnyRef → Any
  51. macro def trace(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  52. macro def trace(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  53. def update(updater: (A) ⇒ A, force: Boolean = false): Unit

    Permalink

    Updates the variable and trigger the recalculation of the subscribers currentValue => newValue

    Updates the variable and trigger the recalculation of the subscribers currentValue => newValue

    Definition Classes
    RxVarRxVarOps
  54. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. macro def warn(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  58. macro def warn(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  59. def withFilter(f: (A) ⇒ Boolean): RxStream[A]

    Permalink
    Definition Classes
    RxStream
  60. def withName(name: String): RxStream[A]

    Permalink
    Definition Classes
    RxStream
  61. def zip[B, C, D](b: Rx[B], c: Rx[C], d: Rx[D]): RxStream[(A, B, C, D)]

    Permalink
    Definition Classes
    RxStream
  62. def zip[B, C](b: Rx[B], c: Rx[C]): RxStream[(A, B, C)]

    Permalink
    Definition Classes
    RxStream
  63. def zip[B](other: Rx[B]): RxStream[(A, B)]

    Permalink

    Combine two Rx streams to form a sequence of pairs.

    Combine two Rx streams to form a sequence of pairs. This will emit a new pair when both of the streams are updated.

    Definition Classes
    RxStream

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from RxVarOps[A]

Inherited from RxStream[A]

Inherited from LogSupport

Inherited from LazyLogger

Inherited from LoggingMethods

Inherited from Serializable

Inherited from Serializable

Inherited from Rx[A]

Inherited from AnyRef

Inherited from Any

Ungrouped