Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ValueStreamAdapter

Adapter for transforming the type of the emitted value to the datatype of the ValueStream.

Hierarchy

  • ValueStreamAdapter

Implements

  • any

Index

Constructors

constructor

  • Create a new ValueStreamAdapter instance

    Parameters

    Returns ValueStreamAdapter

Properties

Private datatype

datatype: AbstractDataType<any, any, any> | AnyDataTypeImpl

The data type of the value stream

Private sourceDatatype

sourceDatatype: DataType<any, any, any>

The datatype of the topic

Private stream

The underlying stream adapter

Methods

onDelta

  • onDelta(path: string, specification: TopicSpecification, oldContent: Buffer | null, content: Buffer, delta: BinaryDelta | null, oldValue: any, newValue: any): any
  • inheritdoc

    Parameters

    Returns any

onOpen

  • onOpen(): any
  • inheritdoc

    Returns any

onSubscription

  • inheritdoc

    Parameters

    Returns any

onSubscriptionError

  • inheritdoc

    Parameters

    Returns any

onUnsubscription

onValue

  • onValue(path: string, specification: TopicSpecification, oldContent: Buffer | null, content: Buffer, oldValue: any, newValue: any): any
  • inheritdoc

    Parameters

    • path: string
    • specification: TopicSpecification
    • oldContent: Buffer | null
    • content: Buffer
    • oldValue: any
    • newValue: any

    Returns any

selects

  • inheritdoc

    Parameters

    Returns any