• Public
  • Public/Protected
  • All

Interface ProducerOptions




Optional announcement

announcement?: RouteAnnouncement

What name to be readvertised. Ignored if prefix is undefined.

Optional autoBuffer

autoBuffer?: boolean

Whether to add handler return value to buffer. Default is true. Ignored when dataBuffer is not specified.

Optional concurrency

concurrency?: number

How many Interests to process in parallel. Default is 1.

Optional dataBuffer

dataBuffer?: DataBuffer

Outgoing Data buffer.

Optional dataSigner

dataSigner?: Signer

If specified, automatically sign Data packets unless already signed. This does not apply to Data packets manually inserted to the dataBuffer.

Optional describe

describe?: string

Description for debugging purpose.

Optional routeCapture

routeCapture?: boolean

Whether routes registered by producer would cause @ndn/fw internal FIB to stop matching toward shorter prefixes. Default is true.

If all nexthops of a FIB entry are set to non-capture, FIB lookup may continue onto nexthops on FIB entries with shorter prefixes. One use case is in @ndn/sync package, where both local and remote sync participants want to receive each other's Interests.

Optional signal

signal?: AbortSignal

AbortSignal that allows closing the producer via AbortController.

Generated using TypeDoc