Rx

wvlet.airframe.rx.Rx$
See theRx companion trait
object Rx extends LogSupport

Attributes

Companion:
trait
Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Self type
Rx.type

Members list

Concise view

Type members

Classlikes

case class CacheOp[A](input: Rx[A], var lastValue: Option[A], var lastUpdatedNanos: Long, expirationAfterWriteNanos: Option[Long], ticker: Ticker) extends UnaryRx[A, A] with RxStreamCache[A]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStreamCache[A]
class UnaryRx[A, A]
trait RxStream[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[A]
class Object
trait Matchable
class Any
case class ConcatOp[A](first: Rx[A], next: Rx[A]) extends RxStream[A]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[A]
class Object
trait Matchable
class Any
case class FilterOp[A](input: Rx[A], cond: A => Boolean) extends UnaryRx[A, A]

Attributes

Graph
Supertypes
trait Product
trait Equals
class UnaryRx[A, A]
trait RxStream[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[A]
class Object
trait Matchable
class Any
case class FlatMapOp[A, B](input: Rx[A], f: A => Rx[B]) extends UnaryRx[A, B]

Attributes

Graph
Supertypes
trait Product
trait Equals
class UnaryRx[A, B]
trait RxStream[B]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[B]
class Object
trait Matchable
class Any
case class IntervalOp(interval: Long, unit: TimeUnit) extends RxStream[Long]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[Long]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[Long]
class Object
trait Matchable
class Any
case class Join3Op[A, B, C](a: Rx[A], b: Rx[B], c: Rx[C]) extends RxStream[(A, B, C)]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[(A, B, C)]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[(A, B, C)]
class Object
trait Matchable
class Any
case class Join4Op[A, B, C, D](a: Rx[A], b: Rx[B], c: Rx[C], d: Rx[D]) extends RxStream[(A, B, C, D)]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[(A, B, C, D)]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[(A, B, C, D)]
class Object
trait Matchable
class Any
case class JoinOp[A, B](a: Rx[A], b: Rx[B]) extends RxStream[(A, B)]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[(A, B)]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[(A, B)]
class Object
trait Matchable
class Any
case class LastOp[A](input: Rx[A]) extends RxStream[Option[A]]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[Option[A]]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[Option[A]]
class Object
trait Matchable
class Any
case class MapOp[A, B](input: Rx[A], f: A => B) extends UnaryRx[A, B]

Attributes

Graph
Supertypes
trait Product
trait Equals
class UnaryRx[A, B]
trait RxStream[B]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[B]
class Object
trait Matchable
class Any
case class NamedOp[A](input: Rx[A], name: String) extends UnaryRx[A, A]

Attributes

Graph
Supertypes
trait Product
trait Equals
class UnaryRx[A, A]
trait RxStream[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[A]
class Object
trait Matchable
class Any
case class RecoverOp[A, U](input: Rx[A], f: PartialFunction[Throwable, U]) extends UnaryRx[A, U]

Attributes

Graph
Supertypes
trait Product
trait Equals
class UnaryRx[A, U]
trait RxStream[U]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[U]
class Object
trait Matchable
class Any
case class RecoverWithOp[A, U](input: Rx[A], f: PartialFunction[Throwable, Rx[U]]) extends UnaryRx[A, U]

Attributes

Graph
Supertypes
trait Product
trait Equals
class UnaryRx[A, U]
trait RxStream[U]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[U]
class Object
trait Matchable
class Any
case class SeqOp[A](lst: LazyF0[Seq[A]]) extends RxStream[A]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[A]
class Object
trait Matchable
class Any
case class SingleOp[A](v: LazyF0[A]) extends RxStream[A]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[A]
class Object
trait Matchable
class Any
case class TakeOp[A](input: Rx[A], n: Long) extends RxStream[A]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[A]
class Object
trait Matchable
class Any
case class ThrottleFirstOp[A](input: Rx[A], interval: Long, unit: TimeUnit) extends UnaryRx[A, A]

Attributes

Graph
Supertypes
trait Product
trait Equals
class UnaryRx[A, A]
trait RxStream[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[A]
class Object
trait Matchable
class Any
case class ThrottleLastOp[A](input: Rx[A], interval: Long, unit: TimeUnit) extends UnaryRx[A, A]

Attributes

Graph
Supertypes
trait Product
trait Equals
class UnaryRx[A, A]
trait RxStream[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[A]
class Object
trait Matchable
class Any
case class TimerOp(interval: Long, unit: TimeUnit) extends RxStream[Long]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[Long]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[Long]
class Object
trait Matchable
class Any
case class TryOp[A](v: Try[A]) extends RxStream[A]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[A]
class Object
trait Matchable
class Any
abstract class UnaryRx[I, A] extends RxStream[A]

Attributes

Graph
Supertypes
trait RxStream[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[A]
class Object
trait Matchable
class Any
Known subtypes
class CacheOp[A]
class FilterOp[A]
class FlatMapOp[A, B]
class MapOp[A, B]
class NamedOp[A]
class RecoverOp[A, U]
class RecoverWithOp[A, U]
case class Zip3Op[A, B, C](a: Rx[A], b: Rx[B], c: Rx[C]) extends RxStream[(A, B, C)]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[(A, B, C)]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[(A, B, C)]
class Object
trait Matchable
class Any
case class Zip4Op[A, B, C, D](a: Rx[A], b: Rx[B], c: Rx[C], d: Rx[D]) extends RxStream[(A, B, C, D)]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[(A, B, C, D)]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[(A, B, C, D)]
class Object
trait Matchable
class Any
case class ZipOp[A, B](a: Rx[A], b: Rx[B]) extends RxStream[(A, B)]

Attributes

Graph
Supertypes
trait Product
trait Equals
trait RxStream[(A, B)]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
trait Rx[(A, B)]
class Object
trait Matchable
class Any

Value members

Concrete methods

def concat[A, A1 >: A](a: Rx[A], b: Rx[A1]): RxStream[A1]
def const[A](v: => A): RxStream[A]
def delay(interval: Long, unit: TimeUnit): RxStream[Long]

Emits 0 once after the give delay period.

Emits 0 once after the give delay period.

Attributes

def empty[A]: RxStream[A]
def exception[A](e: Throwable): RxStream[A]
def fromFuture[A](f: Future[A])(implicit ec: ExecutionContext): RxOption[A]

Mapping a Scala Future into Rx. While the future response is unavailable, it emits Rx.none. When the future is complete, Rx.some(A) will be returned.

Mapping a Scala Future into Rx. While the future response is unavailable, it emits Rx.none. When the future is complete, Rx.some(A) will be returned.

The difference from Rx.future is that this method can observe the waiting state of the Future response. For example, while this returns None, you can render an icon that represents loading state.

Attributes

def fromSeq[A](lst: => Seq[A]): RxStream[A]

Create a sequence of values from Seq[A]

Create a sequence of values from Seq[A]

Attributes

def future[A](f: Future[A])(implicit ec: ExecutionContext): RxStream[A]

Mapping a Scala Future into Rx that emits a value when the future is completed.

Mapping a Scala Future into Rx that emits a value when the future is completed.

Attributes

def interval(interval: Long, unit: TimeUnit): RxStream[Long]

Periodically trigger an event and report the interval millis. After running Rx with an interval, the cancel method must be called to stop the timer: val c = Rx.interval(...).run { x => ... } c.cancel

Periodically trigger an event and report the interval millis. After running Rx with an interval, the cancel method must be called to stop the timer: val c = Rx.interval(...).run { x => ... } c.cancel

Attributes

def intervalMillis(intervalMillis: Long): RxStream[Long]
def join[A, B](a: Rx[A], b: Rx[B]): RxStream[(A, B)]
def join[A, B, C](a: Rx[A], b: Rx[B], c: Rx[C]): RxStream[(A, B, C)]
def join[A, B, C, D](a: Rx[A], b: Rx[B], c: Rx[C], d: Rx[D]): RxStream[(A, B, C, D)]
def option[A](v: => Option[A]): RxOption[A]
def optionVariable[A](v: Option[A]): RxOptionVar[A]
def sequence[A](values: A*): RxStream[A]

Create a sequence of values

Create a sequence of values

Attributes

def single[A](v: => A): RxStream[A]
def timer(interval: Long, unit: TimeUnit): RxStream[Long]

Emits 0 once after the give delay period.

Emits 0 once after the give delay period.

Attributes

def variable[A](v: A): RxVar[A]
def zip[A, B](a: Rx[A], b: Rx[B]): RxStream[(A, B)]
def zip[A, B, C](a: Rx[A], b: Rx[B], c: Rx[C]): RxStream[(A, B, C)]
def zip[A, B, C, D](a: Rx[A], b: Rx[B], c: Rx[C], d: Rx[D]): RxStream[(A, B, C, D)]

Deprecated methods

def apply[A](v: A): RxVar[A]

Attributes

Deprecated
[Since version 20.9.2] Use Rx.variable instead

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods

Concrete fields

val none: RxOption[Nothing]