Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapDownlink<K, V, KU, VU>

Type parameters

  • K

  • V

  • KU = never

  • VU = never

Hierarchy

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Readonly context

Readonly effects

effects: BTree<K, KeyEffect, never>

Readonly flags

flags: number

Readonly input

input: null | MapOutlet<K, V, Map<K, V>>

Readonly model

model: null | MapDownlinkModel

Readonly observers

observers: readonly MapDownlinkObserver<K, V, KU, VU>[]

Readonly outlets

outlets: BTree<K, KeyOutlet<K, V>, never>

Readonly outputs

outputs: readonly Inlet<MapDownlink<K, V, KU, VU>>[]

Readonly ownBody

ownBody: Value

Readonly ownHostUri

ownHostUri: Uri

Readonly ownKeyForm

ownKeyForm: Form<K, KU>

Readonly ownLaneUri

ownLaneUri: Uri

Readonly ownNodeUri

ownNodeUri: Uri

Readonly ownPrio

ownPrio: number

Readonly ownRate

ownRate: number

Readonly ownValueForm

ownValueForm: Form<V, VU>

Readonly owner

owner: null | DownlinkOwner

Readonly state0

state0: null | BTree<Value, Value, never>

Readonly version

version: number

Accessors

session

  • Returns Value

size

  • get size(): number
  • Returns number

type

  • Returns DownlinkType

Methods

bindInput

  • Parameters

    Returns void

bindOutput

  • Parameters

    Returns void

body

  • Returns Value

  • Parameters

    Returns MapDownlink<K, V, KU, VU>

clear

  • clear(): void
  • Returns void

close

  • close(): void
  • Returns void

closeUp

  • closeUp(): void
  • Returns void

command

  • Parameters

    Returns void

Protected copy

decohere

  • decohere(): void
  • Returns void

decohereInput

  • decohereInput(): void
  • Returns void

decohereInputKey

  • decohereInputKey(key: K, effect: KeyEffect): void
  • Parameters

    Returns void

decohereKey

  • decohereKey(key: K, effect: KeyEffect): void
  • Parameters

    Returns void

decohereOutput

  • decohereOutput(): void
  • Returns void

decohereOutputKey

  • decohereOutputKey(key: K, effect: KeyEffect): void
  • Parameters

    Returns void

delete

  • delete(key: K | KU): boolean
  • Parameters

    • key: K | KU

    Returns boolean

Protected didAliasModel

  • didAliasModel(): void
  • Returns void

didClear

  • didClear(didClear: MapDownlinkDidClear<K, V, KU, VU>): MapDownlink<K, V, KU, VU>
  • Parameters

    • didClear: MapDownlinkDidClear<K, V, KU, VU>

    Returns MapDownlink<K, V, KU, VU>

didClose

  • didClose(didClose: DownlinkDidClose): MapDownlink<K, V, KU, VU>
  • Parameters

    • didClose: DownlinkDidClose

    Returns MapDownlink<K, V, KU, VU>

didConnect

  • didConnect(didConnect: DownlinkDidConnect): MapDownlink<K, V, KU, VU>
  • Parameters

    • didConnect: DownlinkDidConnect

    Returns MapDownlink<K, V, KU, VU>

Protected didDecohere

  • didDecohere(): void
  • Returns void

Protected didDecohereKey

  • didDecohereKey(key: K, effect: KeyEffect): void
  • Parameters

    Returns void

didDisconnect

  • didDisconnect(didDisconnect: DownlinkDidDisconnect): MapDownlink<K, V, KU, VU>
  • Parameters

    • didDisconnect: DownlinkDidDisconnect

    Returns MapDownlink<K, V, KU, VU>

didDrop

  • didDrop(didDrop: MapDownlinkDidDrop<K, V, KU, VU>): MapDownlink<K, V, KU, VU>
  • Parameters

    • didDrop: MapDownlinkDidDrop<K, V, KU, VU>

    Returns MapDownlink<K, V, KU, VU>

didFail

  • didFail(didFail: DownlinkDidFail): MapDownlink<K, V, KU, VU>
  • Parameters

    • didFail: DownlinkDidFail

    Returns MapDownlink<K, V, KU, VU>

didLink

  • didLink(didLink: DownlinkDidLink): MapDownlink<K, V, KU, VU>
  • Parameters

    • didLink: DownlinkDidLink

    Returns MapDownlink<K, V, KU, VU>

Protected didRecohere

  • didRecohere(version: number): void
  • Parameters

    • version: number

    Returns void

Protected didRecohereKey

  • didRecohereKey(key: K, effect: KeyEffect, version: number): void
  • Parameters

    Returns void

didRemove

  • didRemove(didRemove: MapDownlinkDidRemove<K, V, KU, VU>): MapDownlink<K, V, KU, VU>
  • Parameters

    • didRemove: MapDownlinkDidRemove<K, V, KU, VU>

    Returns MapDownlink<K, V, KU, VU>

didSync

  • didSync(didSync: DownlinkDidSync): MapDownlink<K, V, KU, VU>
  • Parameters

    • didSync: DownlinkDidSync

    Returns MapDownlink<K, V, KU, VU>

didTake

  • didTake(didTake: MapDownlinkDidTake<K, V, KU, VU>): MapDownlink<K, V, KU, VU>
  • Parameters

    • didTake: MapDownlinkDidTake<K, V, KU, VU>

    Returns MapDownlink<K, V, KU, VU>

didUnlink

  • didUnlink(didUnlink: DownlinkDidUnlink): MapDownlink<K, V, KU, VU>
  • Parameters

    • didUnlink: DownlinkDidUnlink

    Returns MapDownlink<K, V, KU, VU>

didUpdate

  • didUpdate(didUpdate: MapDownlinkDidUpdate<K, V, KU, VU>): MapDownlink<K, V, KU, VU>
  • Parameters

    • didUpdate: MapDownlinkDidUpdate<K, V, KU, VU>

    Returns MapDownlink<K, V, KU, VU>

disconnectInputs

  • disconnectInputs(): void
  • Returns void

disconnectOutputs

  • disconnectOutputs(): void
  • Returns void

drop

  • Parameters

    • lower: number

    Returns MapDownlink<K, V, KU, VU>

entries

  • Returns Cursor<[K, V]>

filter

  • Parameters

    Returns MapOutlet<K, V, Map<K, V>>

firstEntry

  • firstEntry(): undefined | [K, V]
  • Returns undefined | [K, V]

firstKey

  • firstKey(): undefined | K
  • Returns undefined | K

firstValue

  • firstValue(): undefined | V
  • Returns undefined | V

forEach

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

    • T

    Parameters

    • callback: (key: K, value: V) => void | T
        • (key: K, value: V): void | T
        • Parameters

          • key: K
          • value: V

          Returns void | T

    Returns undefined | T

  • Type parameters

    • T

    • S

    Parameters

    • callback: (key: K, value: V) => void | T
        • (key: K, value: V): void | T
        • Parameters

          • key: K
          • value: V

          Returns void | T

    • thisArg: S

    Returns undefined | T

get

  • Returns MapDownlink<K, V, KU, VU>

  • Parameters

    • key: K | KU

    Returns V

getEntry

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

    • index: number

    Returns undefined | [K, V]

has

  • has(key: K | KU): boolean
  • Parameters

    • key: K | KU

    Returns boolean

hostDidConnect

  • hostDidConnect(): void
  • Returns void

hostDidDisconnect

  • hostDidDisconnect(): void
  • Returns void

hostDidFail

  • hostDidFail(error: unknown): void
  • Parameters

    • error: unknown

    Returns void

hostUri

  • Returns Uri

  • Parameters

    Returns MapDownlink<K, V, KU, VU>

initialState

  • Returns null | BTree<Value, Value, never>

  • Parameters

    Returns MapDownlink<K, V, KU, VU>

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
  • keepLinked(keepLinked: boolean): MapDownlink<K, V, KU, VU>
  • Returns boolean

  • Parameters

    • keepLinked: boolean

    Returns MapDownlink<K, V, KU, VU>

keepSynced

  • keepSynced(): boolean
  • keepSynced(keepSynced: boolean): MapDownlink<K, V, KU, VU>
  • Returns boolean

  • Parameters

    • keepSynced: boolean

    Returns MapDownlink<K, V, KU, VU>

keyForm

  • Returns Form<K, KU>

  • Type parameters

    • K2

    • K2U = never

    Parameters

    • keyForm: Form<K2, K2U>

    Returns MapDownlink<K2, V, K2U, VU>

keyIterator

  • Returns Cursor<K>

keys

  • Returns Cursor<K>

laneUri

  • Returns Uri

  • Parameters

    Returns MapDownlink<K, V, KU, VU>

lastEntry

  • lastEntry(): undefined | [K, V]
  • Returns undefined | [K, V]

lastKey

  • lastKey(): undefined | K
  • Returns undefined | K

lastValue

  • lastValue(): undefined | V
  • Returns undefined | V

map

  • Type parameters

    • O2

    Parameters

    Returns Outlet<O2>

  • Type parameters

    • V2

    Parameters

    Returns MapOutlet<K, V2, Map<K, V2>>

mapDidClear

  • mapDidClear(): void
  • Returns void

mapDidDrop

  • mapDidDrop(lower: number): void
  • Parameters

    • lower: number

    Returns void

mapDidRemove

  • Parameters

    Returns void

mapDidTake

  • mapDidTake(upper: number): void
  • Parameters

    • upper: number

    Returns void

mapDidUpdate

  • Parameters

    Returns void

mapWillClear

  • mapWillClear(): void
  • Returns void

mapWillDrop

  • mapWillDrop(lower: number): void
  • Parameters

    • lower: number

    Returns void

mapWillRemove

  • mapWillRemove(key: Value): void
  • Parameters

    Returns void

mapWillTake

  • mapWillTake(upper: number): void
  • Parameters

    • upper: number

    Returns void

mapWillUpdate

  • Parameters

    Returns Value

memoize

  • Returns MapOutlet<K, V, MapDownlink<K, V, KU, VU>>

nextEntry

  • nextEntry(keyObject: K): undefined | [K, V]
  • Parameters

    • keyObject: K

    Returns undefined | [K, V]

nextKey

  • nextKey(keyObject: K): undefined | K
  • Parameters

    • keyObject: K

    Returns undefined | K

nextValue

  • nextValue(keyObject: K): undefined | V
  • Parameters

    • keyObject: K

    Returns undefined | V

nodeUri

  • Returns Uri

  • Parameters

    Returns MapDownlink<K, V, KU, VU>

observe

onCommand

  • onCommand(onCommand: DownlinkOnCommand): MapDownlink<K, V, KU, VU>
  • Parameters

    • onCommand: DownlinkOnCommand

    Returns MapDownlink<K, V, KU, VU>

onCommandMessage

  • onCommandMessage(body: Value): void
  • Parameters

    Returns void

Protected onDecohere

  • onDecohere(): void
  • Returns void

Protected onDecohereKey

  • onDecohereKey(key: K, effect: KeyEffect): void
  • Parameters

    Returns void

onEvent

  • onEvent(onEvent: DownlinkOnEvent): MapDownlink<K, V, KU, VU>
  • Parameters

    • onEvent: DownlinkOnEvent

    Returns MapDownlink<K, V, KU, VU>

onEventMessage

  • Parameters

    Returns void

onLinkRequest

  • Parameters

    Returns void

onLinkedResponse

Protected onRecohere

  • onRecohere(version: number): void
  • Parameters

    • version: number

    Returns void

Protected onRecohereKey

  • onRecohereKey(key: K, effect: KeyEffect, version: number): void
  • Parameters

    Returns void

onSyncRequest

  • Parameters

    Returns void

onSyncedResponse

onUnlinkRequest

  • Parameters

    Returns void

onUnlinkedResponse

open

  • Returns MapDownlink<K, V, KU, VU>

openUp

  • openUp(host: Host): void
  • Parameters

    Returns void

outlet

  • Parameters

    • key: K

    Returns Outlet<V>

outputIterator

  • Returns Cursor<Inlet<MapDownlink<K, V, KU, VU>>>

previousEntry

  • previousEntry(keyObject: K): undefined | [K, V]
  • Parameters

    • keyObject: K

    Returns undefined | [K, V]

previousKey

  • previousKey(keyObject: K): undefined | K
  • Parameters

    • keyObject: K

    Returns undefined | K

previousValue

  • previousValue(keyObject: K): undefined | V
  • Parameters

    • keyObject: K

    Returns undefined | V

prio

  • prio(): number
  • prio(prio: number): MapDownlink<K, V, KU, VU>
  • Returns number

  • Parameters

    • prio: number

    Returns MapDownlink<K, V, KU, VU>

rate

  • rate(): number
  • rate(rate: number): MapDownlink<K, V, KU, VU>
  • Returns number

  • Parameters

    • rate: number

    Returns MapDownlink<K, V, KU, VU>

recohere

  • recohere(version: number): void
  • Parameters

    • version: number

    Returns void

recohereInput

  • recohereInput(version: number): void
  • Parameters

    • version: number

    Returns void

recohereInputKey

  • recohereInputKey(key: K, version: number): void
  • Parameters

    • key: K
    • version: number

    Returns void

recohereKey

  • recohereKey(key: K, version: number): void
  • Parameters

    • key: K
    • version: number

    Returns void

recohereOutput

  • recohereOutput(version: number): void
  • Parameters

    • version: number

    Returns void

recohereOutputKey

  • recohereOutputKey(key: K, version: number): void
  • Parameters

    • key: K
    • version: number

    Returns void

reduce

  • reduce<U>(identity: U, accumulator: (result: U, element: V) => U, combiner: (result: U, result2: U) => U): Outlet<U>
  • Type parameters

    • U

    Parameters

    • identity: U
    • accumulator: (result: U, element: V) => U
        • (result: U, element: V): U
        • Parameters

          • result: U
          • element: V

          Returns U

    • combiner: (result: U, result2: U) => U
        • (result: U, result2: U): U
        • Parameters

          • result: U
          • result2: U

          Returns U

    Returns Outlet<U>

set

  • set(key: K | KU, newValue: V | VU): MapDownlink<K, V, KU, VU>
  • Parameters

    • key: K | KU
    • newValue: V | VU

    Returns MapDownlink<K, V, KU, VU>

setState

  • Parameters

    Returns void

snapshot

  • Returns BTree<Value, Value, never>

take

  • Parameters

    • upper: number

    Returns MapDownlink<K, V, KU, VU>

unbindInput

  • unbindInput(): void
  • Returns void

unbindOutput

  • Parameters

    Returns void

unbindOutputs

  • unbindOutputs(): void
  • Returns void

unobserve

  • unobserve(observer: unknown): MapDownlink<K, V, KU, VU>
  • Parameters

    • observer: unknown

    Returns MapDownlink<K, V, KU, VU>

valueForm

  • valueForm(): Form<V, VU>
  • valueForm<V2, V2U>(valueForm: Form<V2, V2U>): MapDownlink<K, V2, KU, V2U>
  • Returns Form<V, VU>

  • Type parameters

    • V2

    • V2U = never

    Parameters

    • valueForm: Form<V2, V2U>

    Returns MapDownlink<K, V2, KU, V2U>

values

  • Returns Cursor<V>

watch

  • Parameters

    Returns MapDownlink<K, V, KU, VU>

  • Parameters

    Returns MapDownlink<K, V, KU, VU>

willClear

  • willClear(willClear: MapDownlinkWillClear<K, V, KU, VU>): MapDownlink<K, V, KU, VU>
  • Parameters

    • willClear: MapDownlinkWillClear<K, V, KU, VU>

    Returns MapDownlink<K, V, KU, VU>

Protected willDecohere

  • willDecohere(): void
  • Returns void

Protected willDecohereKey

  • willDecohereKey(key: K, effect: KeyEffect): void
  • Parameters

    Returns void

willDrop

  • willDrop(willDrop: MapDownlinkWillDrop<K, V, KU, VU>): MapDownlink<K, V, KU, VU>
  • Parameters

    • willDrop: MapDownlinkWillDrop<K, V, KU, VU>

    Returns MapDownlink<K, V, KU, VU>

willLink

  • willLink(willLink: DownlinkWillLink): MapDownlink<K, V, KU, VU>
  • Parameters

    • willLink: DownlinkWillLink

    Returns MapDownlink<K, V, KU, VU>

Protected willRecohere

  • willRecohere(version: number): void
  • Parameters

    • version: number

    Returns void

Protected willRecohereKey

  • willRecohereKey(key: K, effect: KeyEffect, version: number): void
  • Parameters

    Returns void

willRemove

  • willRemove(willRemove: MapDownlinkWillRemove<K, V, KU, VU>): MapDownlink<K, V, KU, VU>
  • Parameters

    • willRemove: MapDownlinkWillRemove<K, V, KU, VU>

    Returns MapDownlink<K, V, KU, VU>

willSync

  • willSync(willSync: DownlinkWillSync): MapDownlink<K, V, KU, VU>
  • Parameters

    • willSync: DownlinkWillSync

    Returns MapDownlink<K, V, KU, VU>

willTake

  • willTake(willTake: MapDownlinkWillTake<K, V, KU, VU>): MapDownlink<K, V, KU, VU>
  • Parameters

    • willTake: MapDownlinkWillTake<K, V, KU, VU>

    Returns MapDownlink<K, V, KU, VU>

willUnlink

  • willUnlink(willUnlink: DownlinkWillUnlink): MapDownlink<K, V, KU, VU>
  • Parameters

    • willUnlink: DownlinkWillUnlink

    Returns MapDownlink<K, V, KU, VU>

willUpdate

  • willUpdate(willUpdate: MapDownlinkWillUpdate<K, V, KU, VU>): MapDownlink<K, V, KU, VU>
  • Parameters

    • willUpdate: MapDownlinkWillUpdate<K, V, KU, VU>

    Returns MapDownlink<K, V, KU, VU>

Static initForm

  • Returns Form<undefined | DownlinkInit, never>

Generated using TypeDoc