@bedrock-oss/bedrock-boost
    Preparing search index...

    Class EntityPulseScheduler

    Represents a PulseScheduler that processes entities matching a query.

    Hierarchy (View Summary)

    Index

    Constructors

    • Creates a new EntityPulseScheduler instance.

      Parameters

      • processor: (t: Entity) => void
      • period: number

        The period of the scheduler.

      • queryOptions: EntityQueryOptions

        The query options to use when querying for entities.

      Returns EntityPulseScheduler

    Properties

    items: Entity[]
    processor: (t: Entity) => void

    Methods

    • Adds an item to the schedule.

      Parameters

      • item: Entity

        The item to be added.

      Returns void

      Use push instead.

    • Adds multiple items to the schedule.

      Parameters

      • items: Entity[]

        The items to be added.

      Returns void

      Use push instead.

    • Returns a list of the items in the schedule.

      Returns readonly Entity[]

    • Returns undefined | Entity

    • Parameters

      • ...items: Entity[]

      Returns number

    • Removes an item from the schedule at the specified index.

      Parameters

      • index: number

        The index of the item to remove.

      Returns void

    • Removes items from the schedule that satisfy the given predicate.

      Parameters

      • predicate: (t: Entity) => boolean

        The predicate function used to determine if an item should be removed.

      Returns void

    • Returns undefined | Entity

    • Parameters

      • start: number
      • OptionaldeleteCount: number

      Returns Entity[]

    • Parameters

      • start: number
      • deleteCount: number
      • ...items: Entity[]

      Returns Entity[]

    • Starts the schedule.

      Returns void

    • Stops the schedule.

      Returns void

    • Parameters

      • ...items: Entity[]

      Returns number