Subscriber

trait Subscriber[-A] extends Observer[A]

A Subscriber is an Observer with an attached Scheduler.

A Subscriber can be seen as an address that the data source needs in order to send events, along with an execution context.

Companion:
object
trait Observer[A]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def contramap[B](f: B => A): Subscriber[B]
Implicitly added by Extensions

Given a contravariant mapping function, transform the source Subscriber by transforming the input.

Given a contravariant mapping function, transform the source Subscriber by transforming the input.

def feed(iterable: Iterable[A]): Future[Ack]
Implicitly added by Extensions

Feeds the source Subscriber with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Feeds the source Subscriber with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Value parameters:
iterable

is the collection of items to push downstream

def feed(subscription: BooleanCancelable, iterable: Iterable[A]): Future[Ack]
Implicitly added by Extensions

Feeds the source Subscriber with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Feeds the source Subscriber with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Value parameters:
iterable

is the collection of items to push downstream

subscription

is a BooleanCancelable that will be queried for its cancellation status, but only on asynchronous boundaries, and when it is seen as being isCanceled, streaming is stopped.

def feed(iterator: Iterator[A]): Future[Ack]
Implicitly added by Extensions

Feeds the source Subscriber with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Feeds the source Subscriber with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Value parameters:
iterator

is the iterator of items to push downstream

def feed(subscription: BooleanCancelable, iterator: Iterator[A]): Future[Ack]
Implicitly added by Extensions

Feeds the source Subscriber with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Feeds the source Subscriber with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Value parameters:
iterator

is the iterator of items to push downstream

subscription

is a BooleanCancelable that will be queried for its cancellation status, but only on asynchronous boundaries, and when it is seen as being isCanceled, streaming is stopped.

def onNextAll(xs: Iterable[A]): Future[Ack]
Implicitly added by Extensions

Feeds the source Subscriber with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Feeds the source Subscriber with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

Value parameters:
xs

the traversable object containing the elements to feed into our subscriber

def toReactive: Subscriber[A]
Implicitly added by Extensions

Transforms the source Subscriber into a org.reactivestreams.Subscriber instance as defined by the Reactive Streams specification.

Transforms the source Subscriber into a org.reactivestreams.Subscriber instance as defined by the Reactive Streams specification.

def toReactive(requestCount: Int): Subscriber[A]
Implicitly added by Extensions

Transforms the source Subscriber into a org.reactivestreams.Subscriber instance as defined by the Reactive Streams specification.

Transforms the source Subscriber into a org.reactivestreams.Subscriber instance as defined by the Reactive Streams specification.

Value parameters:
requestCount

a strictly positive number, representing the size of the buffer used and the number of elements requested on each cycle when communicating demand, compliant with the reactive streams specification

Inherited methods

Inherited from:
Observer
Inherited from:
Observer
def onNext(elem: A): Future[Ack]
Inherited from:
Observer

Concrete fields

Implicitly added by Extensions

Implicits

Implicits

implicit def scheduler: Scheduler