Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LocalBus<TEvent>

Non-connectable event bus implementation. Can forward events to the main Bus instance.

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

  • new LocalBus<TEvent>(): LocalBus<TEvent>

Properties

awareOfContainerLifecycle

awareOfContainerLifecycle: true = true

Protected Readonly bus

bus: Bus<Event>

Private isUp

isUp: boolean = false

True if the bus has been initialized.

Protected Readonly logging

logging: Logging

Protected subscribers

subscribers: Collection<BusSubscriber<TEvent>> = ...

Local listeners subscribed to events on this bus.

Protected subscriptions

subscriptions: Collection<BusInternalSubscription> = ...

Readonly uuid

uuid: string = ...

Accessors

Private appClassApplication

Methods

Protected app

Protected callSubscribers

  • callSubscribers(event: TEvent): Promise<boolean>
  • Call all local listeners for the given event. Returns true if the propagation of the event should be halted.

    Parameters

    • event: TEvent

    Returns Promise<boolean>

Protected container

down

  • down(): Promise<void>

getBoundMethod

  • getBoundMethod(methodName: string): (...args: any[]) => any

isConnected

  • isConnected(): boolean

Protected make

  • make<T>(target: any, ...parameters: any[]): T

onContainerRelease

pipe

push

  • push(event: TEvent): Promise<void>

Protected shouldBroadcast

  • shouldBroadcast(event: TEvent): Promise<boolean>
  • Returns true if the given event should be pushed to connected event busses.

    Parameters

    • event: TEvent

    Returns Promise<boolean>

subscribe

up

  • up(): Promise<void>

Static getCanonicalResolver

  • getCanonicalResolver(): undefined | string

Static getFullyQualifiedCanonicalResolver

  • getFullyQualifiedCanonicalResolver(): undefined | string

Static setCanonicalResolver

  • setCanonicalResolver(fullyQualifiedResolver: string, unqualifiedResolver: string): void
Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.