Class ReadvertiseDestination<State>Abstract

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 extends {} = {}

Hierarchy

  • ReadvertiseDestination

Constructors

Properties

closed: boolean = false
queue: Pushable<Name, void, unknown> = ...
table: NameMap<Record<State>> = ...

Methods

  • Set a prefix to be advertised.

    Parameters

    • name: Name

    Returns void

  • Disable and detach from forwarder.

    Once detached, this instance is no longer usable.

    Returns void

  • Advertise a prefix once.

    Parameters

    • name: Name
    • state: State

    Returns Promise<void>

  • Withdraw a prefix once.

    Parameters

    • name: Name
    • state: State

    Returns Promise<void>

  • Create per-prefix state.

    Parameters

    • name: Name

    Returns State

  • Set a prefix to be withdrawn.

    Parameters

    • name: Name

    Returns void

Generated using TypeDoc