Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MapInlet<K, V, I>

Input connector into a Streamlet for a key-value map state.

Type parameters

  • K

  • V

  • I

Hierarchy

Implemented by

Index

Methods

bindInput

  • bindInput(input: Outlet<I> | null): void

disconnectInputs

  • disconnectInputs(): void

disconnectOutputs

  • disconnectOutputs(): void

input

invalidateOutput

  • invalidateOutput(): void
  • Marks this Inlet—and the Streamlet to which this Inlet is attached—as having stale state. Invalidating an Inlet will recursively invalidate all streamlets that transitively depend on the state of this Inlet. Invalidating an Inlet does not cause its state to be recomputed. A subsequent reconcileOutput call will reconcile the state of the Inlet.

    Returns void

invalidateOutputKey

  • invalidateOutputKey(key: K, effect: KeyEffect): void
  • Marks this MapInlet as needing an effect applied to a given key. Invalidating an individual key invalidates the entire state of the Inlet. But only the invalidated keys need to be updated in order to reconcile the overall state of the Inlet.

    Parameters

    Returns void

reconcileOutput

  • reconcileOutput(version: number): void

reconcileOutputKey

  • reconcileOutputKey(key: K, version: number): void
  • Reconciles the state of an individual key in this MapInlet, if the version of this MapInlet's state differs from the target version. To reconcile the state of a key, the MapInlet first invokes MapOutlet.reconcileInputKey on its input, if its input is a MapOutlet, or it invokes Outlet.reconcileInput, if its input is not a MapOutlet. Then, if all invalid keys have been reconciled, the MapInlet invokes [[Streamletreconcile]] on its attached streamlet.

    Parameters

    • key: K
    • version: number

    Returns void

unbindInput

  • unbindInput(): void