object Sink
- Alphabetic
- By Inheritance
- Sink
- 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
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
create[T](onNext: (T) ⇒ Unit): Sink[T]
Creates a new Sink from Scratch.
Creates a new Sink from Scratch. This function takes another function as its parameter that will be executed every time the Sink receives an emitted value.
- T
the type parameter of the consumed elements.
- onNext
the function to be executed on every emission
- returns
a Sink that consumes elements of type T.
-
def
createHandler[T](seeds: T*): Observable[T] with Sink[T]
Creates a Handler that is both Observable and Sink.
Creates a Handler that is both Observable and Sink. An Observable with Sink is an Observable that can also receive Events, i.e. it’s both a Source and a Sink of events. If you’re familiar with Rx, they’re very similar to Subjects. This function also allows you to create initial values for your newly created Handler. This is equivalent to calling
startWithMany
with the given values.- T
the type parameter of the elements
- seeds
a sequence of initial values that the Handler will emit.
- returns
the newly created Handler.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
redirect[T, R](sink: Sink[T])(project: (Observable[R]) ⇒ Observable[T]): Sink[R]
Creates a new sink.
Creates a new sink. This sink will transform the values it receives and then forward them along to the passed sink. The transformation is described by a function from an Observable to another Observable, i.e. an operator on Observable. This function applies the operator to the newly created sink and forwards the value to the original sink.
- T
the type of the original sink
- R
the type of the resulting sink
- sink
the Sink to forward values to
- project
the operator to use
- returns
the resulting sink, that will forward the values
-
def
redirect2[T, U, R](sink: Sink[T])(project: (Observable[R], Observable[U]) ⇒ Observable[T]): (Sink[R], Sink[U])
Creates two new sinks.
Creates two new sinks. These sinks will transform the values it receives and then forward them along to the passed sink. The transformation is described by a function from two Observables to another Observable, i.e. an operator on Observable. (e.g.
merge
) This function applies the operator to the newly created sinks and forwards the value to the original sink.- T
the type of the original sink
- U
the type of the other of the resulting sinks
- R
the type of one of the resulting sinks
- sink
the Sink to forward values to
- project
the operator to use
- returns
the two resulting sinks, that will forward the values
-
def
redirect3[T, U, V, R](sink: Sink[T])(project: (Observable[R], Observable[U], Observable[V]) ⇒ Observable[T]): (Sink[R], Sink[U], Sink[V])
Creates three new sinks.
Creates three new sinks. These sinks will transform the values it receives and then forward them along to the passed sink. The transformation is described by a function from three Observables to another Observable, i.e. an operator on Observable. (e.g.
combineLatest
) This function applies the operator to the newly created sinks and forwards the value to the original sink.- T
the type of the original sink
- U
the type of one of the other of the resulting sinks
- V
the type of the other of the resulting sinks
- R
the type of one of the resulting sinks
- sink
the Sink to forward values to
- project
the operator to use
- returns
the two resulting sinks, that will forward the values
-
def
redirectMap[T, R](sink: Sink[T])(f: (R) ⇒ T): Sink[R]
Creates a new sink.
Creates a new sink. This sink will transform each value it receives and then forward it along to the passed sink. The transformation is a simple map from one type to another, i.e. a 'map'. This is equivalent to
contramap
on aContravariant
functor, sinceSink
s are contravariant in nature.- T
the type of the original sink
- R
the type of the resulting sink
- sink
the Sink to forward values to
- f
the mapping to perform before forwarding
- returns
the resulting sink, that will forward the values
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )