Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISetter<T>

Interface for data processing components that can set (create or update) data items.

Type parameters

  • T

Hierarchy

  • ISetter

Implemented by

Index

Methods

Methods

set

  • set(correlation_id: string, item: T, callback?: function): void
  • Sets a data item. If the data item exists it updates it, otherwise it create a new data item.

    Parameters

    • correlation_id: string

      (optional) transaction id to trace execution through call chain.

    • item: T

      a item to be set.

    • Optional callback: function

      (optional) callback function that receives updated item or error.

        • (err: any, item: T): void
        • Parameters

          • err: any
          • item: T

          Returns void

    Returns void

Generated using TypeDoc