Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListDownlinkModel

Hierarchy

Index

Constructors

constructor

Properties

Readonly body

body: Value

Readonly context

Readonly host

host: null | Host

Readonly hostUri

hostUri: Uri

Readonly laneUri

laneUri: Uri

Readonly nodeUri

nodeUri: Uri

Readonly prio

prio: number

Readonly rate

rate: number

Readonly state

state: STree<Value, Value>

Readonly status

status: number

Readonly views

views: readonly ListDownlink<unknown, never>[]

Static Readonly Linked

Linked: number

Static Readonly Linking

Linking: number

Static Readonly Synced

Synced: number

Static Readonly Syncing

Syncing: number

Static Readonly Unlinking

Unlinking: number

Accessors

length

  • get length(): number
  • Returns number

session

  • Returns Value

type

  • Returns DownlinkType

unlinkDelay

  • get unlinkDelay(): number
  • Returns number

Methods

addDownlink

  • Parameters

    Returns void

clear

  • clear(): void
  • Returns void

close

  • close(): void
  • Returns void

closeUp

  • closeUp(): void
  • Returns void

command

  • Parameters

    Returns void

Protected doUnlink

  • doUnlink(): void
  • Returns void

entries

  • Returns Cursor<[Value, Value]>

forEach

  • forEach<T>(callback: (value: Value, index: number, key: Value) => void | T): undefined | T
  • forEach<T, S>(callback: (value: Value, index: number, key: Value) => void | T, thisArg: S): undefined | T
  • Type parameters

    • T

    Parameters

    • callback: (value: Value, index: number, key: Value) => void | T
        • (value: Value, index: number, key: Value): void | T
        • Parameters

          Returns void | T

    Returns undefined | T

  • Type parameters

    • T

    • S

    Parameters

    • callback: (value: Value, index: number, key: Value) => void | T
        • (value: Value, index: number, key: Value): void | T
        • Parameters

          Returns void | T

    • thisArg: S

    Returns undefined | T

get

  • Parameters

    • index: number
    • Optional key: Value

    Returns Value

getEntry

  • Parameters

    • index: number
    • Optional key: Value

    Returns undefined | [Value, Value]

hostDidConnect

  • hostDidConnect(host: Host): void
  • Parameters

    Returns void

hostDidDisconnect

  • hostDidDisconnect(host: Host): void
  • Parameters

    Returns void

hostDidFail

  • hostDidFail(error: unknown, host: Host): void
  • Parameters

    • error: unknown
    • host: Host

    Returns void

insert

  • Parameters

    • index: number
    • newValue: Value
    • Optional key: Value

    Returns ListDownlinkModel

isAuthenticated

  • isAuthenticated(): boolean
  • Returns boolean

isConnected

  • isConnected(): boolean
  • Returns boolean

isEmpty

  • isEmpty(): boolean
  • Returns boolean

isLinked

  • isLinked(): boolean
  • Returns boolean

isSynced

  • isSynced(): boolean
  • Returns boolean

keepLinked

  • keepLinked(): boolean
  • Returns boolean

keepSynced

  • keepSynced(): boolean
  • Returns boolean

keys

  • Returns Cursor<Value>

link

  • link(): void
  • Returns void

Protected listDidClear

  • listDidClear(): void
  • Returns void

Protected listDidDrop

  • listDidDrop(lower: number): void
  • Parameters

    • lower: number

    Returns void

Protected listDidMove

  • listDidMove(fromIndex: number, toIndex: number, value: Value): void
  • Parameters

    • fromIndex: number
    • toIndex: number
    • value: Value

    Returns void

Protected listDidRemove

  • listDidRemove(index: number, oldValue: Value): void
  • Parameters

    • index: number
    • oldValue: Value

    Returns void

Protected listDidTake

  • listDidTake(upper: number): void
  • Parameters

    • upper: number

    Returns void

Protected listDidUpdate

  • listDidUpdate(index: number, newValue: Value, oldValue: Value): void
  • Parameters

    Returns void

Protected listWillClear

  • listWillClear(): void
  • Returns void

Protected listWillDrop

  • listWillDrop(lower: number): void
  • Parameters

    • lower: number

    Returns void

Protected listWillMove

  • listWillMove(fromIndex: number, toIndex: number, value: Value): void
  • Parameters

    • fromIndex: number
    • toIndex: number
    • value: Value

    Returns void

Protected listWillRemove

  • listWillRemove(index: number): void
  • Parameters

    • index: number

    Returns void

Protected listWillTake

  • listWillTake(upper: number): void
  • Parameters

    • upper: number

    Returns void

Protected listWillUpdate

  • listWillUpdate(index: number, newValue: Value): Value
  • Parameters

    • index: number
    • newValue: Value

    Returns Value

move

  • Parameters

    • fromIndex: number
    • toIndex: number
    • Optional key: Value

    Returns ListDownlinkModel

Protected onClearEvent

  • onClearEvent(): void
  • Returns void

onCommandMessage

  • onCommandMessage(body: Value): void
  • Parameters

    Returns void

Protected onDropEvent

  • onDropEvent(lower: number): void
  • Parameters

    • lower: number

    Returns void

onEventMessage

Protected onInsertEvent

  • onInsertEvent(index: number, newValue: Value, key: Value): void
  • Parameters

    Returns void

onLinkRequest

onLinkedResponse

Protected onMoveEvent

  • onMoveEvent(fromIndex: number, toIndex: number, key: Value): void
  • Parameters

    • fromIndex: number
    • toIndex: number
    • key: Value

    Returns void

Protected onRemoveEvent

  • onRemoveEvent(index: number, key: Value): void
  • Parameters

    • index: number
    • key: Value

    Returns void

onSyncRequest

onSyncedResponse

Protected onTakeEvent

  • onTakeEvent(upper: number): void
  • Parameters

    • upper: number

    Returns void

onUnlinkRequest

onUnlinkedResponse

Protected onUpdateEvent

  • onUpdateEvent(index: number, newValue: Value, key: Value): void
  • Parameters

    Returns void

openUp

  • openUp(host: Host): void
  • Parameters

    Returns void

pop

  • Returns Value

push

  • push(...newValues: Value[]): number
  • Parameters

    • Rest ...newValues: Value[]

    Returns number

remove

  • Parameters

    • index: number
    • Optional key: Value

    Returns ListDownlinkModel

removeDownlink

  • Parameters

    Returns void

set

  • Parameters

    • index: number
    • newValue: Value
    • Optional key: Value

    Returns ListDownlinkModel

setState

  • Parameters

    Returns void

shift

  • Returns Value

snapshot

  • Returns STree<Value, Value>

splice

  • splice(start: number, deleteCount?: number, ...newValues: Value[]): Value[]
  • Parameters

    • start: number
    • Optional deleteCount: number
    • Rest ...newValues: Value[]

    Returns Value[]

sync

  • sync(): void
  • Returns void

unlink

  • unlink(): void
  • Returns void

unshift

  • unshift(...newValues: Value[]): number
  • Parameters

    • Rest ...newValues: Value[]

    Returns number

values

  • Returns Cursor<Value>

Generated using TypeDoc