Options
All
  • Public
  • Public/Protected
  • All
Menu

A sliding window reordering helper class.

This class takes tuples (value, sequence_number) and a callback that should be called as callback(value) but in order of sequence_number. If a sequence number is received out of order, it puts it into a holding list to be dispatched at the appropriate time.

Type parameters

  • T

Hierarchy

  • SlidingWindowReorderer

Index

Constructors

constructor

Properties

Private callback

callback: function

Type declaration

    • (value: T): void | Promise<void>
    • Parameters

      • value: T

      Returns void | Promise<void>

Private nextExpected

nextExpected: number

Private onHold

onHold: object

Type declaration

  • [key: number]: T

Methods

call

  • call(value: T, sequence: number | null): void

Private tryDispatchInOrder

  • tryDispatchInOrder(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • 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