Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Producer

A running producer.

Hierarchy

  • Producer

Index

Properties

Optional Readonly dataBuffer

dataBuffer: DataBuffer

Readonly face

face: FwFace

Readonly prefix

prefix: undefined | Name

Methods

close

  • close(): void

processInterest

  • processInterest(interest: Interest): Promise<undefined | Data>
  • Process an Interest received elsewhere.

    Use case of this function:

    1. Producer A dynamically creates producer B upon receiving an Interest.
    2. Producer A can invoke this function to let producer B generate a response.
    3. The response should be sent by producer A.

    Parameters

    Returns Promise<undefined | Data>

Generated using TypeDoc