Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UpdateConstraintFactoryImpl

Implementation of UpdateConstraintFactory

Hierarchy

  • UpdateConstraintFactoryImpl

Implements

Index

Methods

jsonValue

  • Create a constraint that partially matches the current topic value.

    The topic must be a JSON topic (or a TIME_SERIES topic with a json event type). The PartialJSON partially describes the structure of a JSON value. The with or without methods must be used to fully qualify the constraint.

    This constraint is useful when changing the value of a topic. The constraint is unsatisfied if no topic is present at the path, making it unsuitable for operations that try to add topics.

    Returns PartialJSONImpl

    the constraint

locked

  • Create a constraint requiring a lock to be held by the session.

    This can be used to coordinate operations between multiple sessions.

    Parameters

    Returns UpdateConstraint

    the constraint

noTopic

  • Create a constraint requiring the path to have no topic.

    This is useful when setting the first value of a topic being added using an UpdateStream without changing the value if the topic already exists. This constraint is unsatisfied if a topic is present at the path, making it unsuitable for operations that try to set topics without adding them.

    Returns NoTopic

    the constraint

noValue

  • Create a constraint requiring the topic to have no value.

    This is useful when setting the first value of a topic. This constraint is unsatisfied if no topic is present at the path, making it unsuitable for operations that try to add topics.

    Returns NoValue

    the constraint

value

  • inheritdoc

    Parameters

    • valueOrOperator: any
    • Optional dataTypeOrValue: any
    • Optional dataTypeNewApi: DataType<any, any, any>

    Returns TopicValueConstraint

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.