Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReadvertiseDestination<State>

A destination of prefix advertisement.

Generally, a prefix advertised to a destination would cause Interests matching the prefix to come to the forwarder, aka prefix registration.

Type parameters

  • State: {} = {}

Hierarchy

  • ReadvertiseDestination

Index

Constructors

constructor

Properties

Protected closed

closed: boolean = false

Protected Readonly queue

queue: Pushable<string> = ...

Protected Readonly table

table: Map<string, Record<State>> = ...

Methods

advertise

  • advertise(name: Name, nameHex: string): void

disable

  • disable(): void

Protected Abstract doAdvertise

  • doAdvertise(name: Name, state: State, nameHex: string): Promise<void>

Protected Abstract doWithdraw

  • doWithdraw(name: Name, state: State, nameHex: string): Promise<void>

enable

Protected makeState

  • makeState(name: Name, nameHex: string): State

Protected restart

  • restart(nameHex: string, record: Record<State>): void

withdraw

  • withdraw(name: Name, nameHex: string): void

Generated using TypeDoc