Publisher

ij_plugins.scala.console.editor.extra.Publisher
trait Publisher[Evt]

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.

Attributes

Evt

type of the published event.

Since:

1

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Type members

Types

type Filter = Evt => Boolean
type Pub <: Publisher[Evt]
type Sub = Subscriber[Evt, Pub]

Value members

Concrete methods

def activateSubscription(sub: Sub): Unit
override def equals(obj: Any): Boolean

Checks if two publishers are structurally identical.

Checks if two publishers are structurally identical.

Attributes

Returns:

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

Definition Classes
Any
protected def publish(event: Evt): Unit
def removeSubscription(sub: Sub): Unit
def subscribe(sub: Sub): Unit
def subscribe(sub: Sub, filter: Filter): Unit
def suspendSubscription(sub: Sub): Unit

Concrete fields

protected val self: Pub

The publisher itself of type Pub. Implemented by a cast from this here. Needs to be overridden if the actual publisher is different from this.

The publisher itself of type Pub. Implemented by a cast from this here. Needs to be overridden if the actual publisher is different from this.

Attributes