Options
All
  • Public
  • Public/Protected
  • All
Menu

ResultBackend manages interactions with databases and result queues.

Hierarchy

  • ResultBackend

Implemented by

Index

Methods

delete

  • delete(taskId: string): Promise<string>
  • Parameters

    • taskId: string

      The UUID of the task whose result is to be deleted from the backend.

    Returns Promise<string>

    A Promise that resolves to the response of the backend after the result has been deleted.

disconnect

  • disconnect(): Promise<void>
  • Forcefully terminates the connection with the backend. To be called once.

    Returns Promise<void>

    A Promise that resolves when the connection has been closed.

end

  • end(): Promise<void>
  • Gently terminates the connection with the backend. To be called once.

    Returns Promise<void>

    A Promise that resolves when all pending transactions have been completed and the connection has been closed.

get

  • Type parameters

    • T

    Parameters

    • __namedParameters: object

    Returns Promise<ResultMessage<T>>

    A Promise that resolves to the result fetched from the backend.

put

  • Type parameters

    • T

    Parameters

    Returns Promise<string>

    A Promise that resolves to the response of the backend after the result message has been received.

uri

  • uri(): string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc