Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeltaQueue

A simple queue implementation for deltas.

Hierarchy

  • DeltaQueue

Index

Constructors

constructor

Properties

Private closeCallback

closeCallback: any

Private delay

delay: any

Private hasError

hasError: any

isClosing

isClosing: boolean

Private logToConsole

logToConsole: any

Private maxDeltasPerBatch

maxDeltasPerBatch: any

Private model

model: any

Private pending

pending: any

Private queue

queue: any

Methods

closeConnection

  • closeConnection(callback: IVoidCallback, errorCallback: IErrorCallback): any
  • Closes the "connection" with the Model API Server in the sense that pending delta requests are processed, and that afterwards the given callback will be called. This function can only be called once.

    Parameters

    • callback: IVoidCallback
    • errorCallback: IErrorCallback

    Returns any

Private processNext

  • processNext(): any
  • Returns any

push

  • Pushes the given delta on the queue for scheduling/processing.

    Parameters

    Returns void

Private schedule

  • schedule(): any
  • Schedules the next delta for processing using JS's event queue/loop.

    Returns any

Generated using TypeDoc