Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapDownlinkModel

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: BTree<Value, Value, never>

Readonly status

status: number

Readonly views

views: readonly MapDownlink<unknown, unknown, never, 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

session

  • Returns Value

size

  • get size(): number
  • Returns number

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

delete

  • delete(key: Value): boolean
  • Parameters

    Returns boolean

Protected doUnlink

  • doUnlink(): void
  • Returns void

drop

  • Parameters

    • lower: number

    Returns MapDownlinkModel

entries

  • Returns Cursor<[Value, Value]>

forEach

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

    • T

    Parameters

    Returns undefined | T

  • Type parameters

    • T

    • S

    Parameters

    • callback: (key: Value, value: Value) => void | T
    • thisArg: S

    Returns undefined | T

get

  • Parameters

    Returns Value

getEntry

  • getEntry(index: number): undefined | [Value, Value]
  • Parameters

    • index: number

    Returns undefined | [Value, Value]

has

  • has(key: Value): boolean
  • Parameters

    Returns boolean

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

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 mapDidClear

  • mapDidClear(): void
  • Returns void

Protected mapDidDrop

  • mapDidDrop(lower: number): void
  • Parameters

    • lower: number

    Returns void

Protected mapDidRemove

  • Parameters

    Returns void

Protected mapDidTake

  • mapDidTake(upper: number): void
  • Parameters

    • upper: number

    Returns void

Protected mapDidUpdate

  • Parameters

    Returns void

Protected mapWillClear

  • mapWillClear(): void
  • Returns void

Protected mapWillDrop

  • mapWillDrop(lower: number): void
  • Parameters

    • lower: number

    Returns void

Protected mapWillRemove

  • mapWillRemove(key: Value): void
  • Parameters

    Returns void

Protected mapWillTake

  • mapWillTake(upper: number): void
  • Parameters

    • upper: number

    Returns void

Protected mapWillUpdate

  • Parameters

    Returns Value

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

onLinkRequest

onLinkedResponse

Protected onRemoveEvent

  • onRemoveEvent(key: Value): void
  • Parameters

    Returns void

onSyncRequest

onSyncedResponse

Protected onTakeEvent

  • onTakeEvent(upper: number): void
  • Parameters

    • upper: number

    Returns void

onUnlinkRequest

onUnlinkedResponse

Protected onUpdateEvent

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

    Returns void

openUp

  • openUp(host: Host): void
  • Parameters

    Returns void

removeDownlink

  • Parameters

    Returns void

set

  • Parameters

    Returns MapDownlinkModel

setState

  • Parameters

    Returns void

snapshot

  • Returns BTree<Value, Value, never>

sync

  • sync(): void
  • Returns void

take

  • Parameters

    • upper: number

    Returns MapDownlinkModel

unlink

  • unlink(): void
  • Returns void

values

  • Returns Cursor<Value>

Generated using TypeDoc