Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServiceExporter

The service exporter allows integrate other discovery technologies with the Vert.x service discovery. It maps entries from another technology to a and maps to a publication in this other technology. The exporter is one side of a service discovery bridge.

Hierarchy

  • ServiceExporter

Index

Methods

close

  • close(closeHandler: ((res: void) => void) | Handler<void>): void
  • Close the exporter

    Parameters

    • closeHandler: ((res: void) => void) | Handler<void>

    Returns void

init

  • init(vertx: Vertx, publisher: ServicePublisher, configuration: {}, future: Promise<void>): void
  • Starts the exporter.

    Parameters

    • vertx: Vertx
    • publisher: ServicePublisher
    • configuration: {}
      • [key: string]: any
    • future: Promise<void>

    Returns void

onPublish

  • onPublish(record: Record): void
  • Notify a new record has been published, the record's registration can be used to uniquely identify the record

    Parameters

    Returns void

onUnpublish

  • onUnpublish(id: string): void
  • Notify an existing record has been removed

    Parameters

    • id: string

    Returns void

onUpdate

  • onUpdate(record: Record): void
  • Notify an existing record has been updated, the record's registration can be used to uniquely identify the record

    Parameters

    Returns void

Generated using TypeDoc