Packages

trait Publisher[Evt] extends AnyRef

Publisher[A,This] objects publish events of type A to all registered subscribers. When subscribing, a subscriber may specify a filter which can be used to constrain the number of events sent to the subscriber. Subscribers may suspend their subscription, or reactivate a suspended subscription. Class Publisher is typically used as a mixin. The abstract type Pub models the type of the publisher itself.

Evt

type of the published event.

Source
Publisher.scala
Version

2.8

Since

1

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Publisher
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Filter = (Evt) ⇒ Boolean
  2. abstract type Pub <: Publisher[Evt]
  3. type Sub = Subscriber[Evt, Pub]

Value Members

  1. def activateSubscription(sub: Sub): Unit
  2. def equals(obj: Any): Boolean

    Checks if two publishers are structurally identical.

    Checks if two publishers are structurally identical.

    returns

    true, iff both publishers contain the same sequence of elements.

    Definition Classes
    Publisher → AnyRef → Any
  3. def removeSubscription(sub: Sub): Unit
  4. def removeSubscriptions(): Unit
  5. def subscribe(sub: Sub, filter: Filter): Unit
  6. def subscribe(sub: Sub): Unit
  7. def suspendSubscription(sub: Sub): Unit