Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractServicePublisher

Abstract base class to simplify implementation of publishers.

Hierarchy

  • AbstractServicePublisher

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Protected Readonly debug

debug: Debugger

Debugger that can be used to output debug messages for the publisher.

Protected Readonly errorEvent

errorEvent: Event<AbstractServicePublisher, [Error]>

Event used to emit errors for this publisher.

Accessors

onError

  • get onError(): Subscribable<this, [Error]>

Methods

Abstract destroy

  • destroy(): Promise<void>

Protected logAndEmitError

  • logAndEmitError(error: Error, message?: string): void
  • Log and emit an error for this discovery.

    Parameters

    • error: Error
      • error that occurred
    • message: string = 'An error occurred:'
      • message that should be logged for the error

    Returns void

Generated using TypeDoc