The entry point to creating and managing new ObjectStore instances.

Constructors

Properties

Methods

Constructors

  • Creates an instance of the Objm that allows you to create and access ObjectStore. Note that if the argument is a NatsConnection, default JetStream Options are used. If you want to set some options, please provide a JetStreamClient instead.

    Parameters

    • nc: NatsConnection | JetStreamClient

    Returns Objm

Properties

js: JetStreamClientImpl

Methods

  • Creates and opens the specified ObjectStore. If the ObjectStore already exists, it opens the existing ObjectStore.

    Parameters

    Returns Promise<ObjectStore>

  • Returns a list of ObjectStoreStatus for all streams that are identified as being a ObjectStore (that is having names that have the prefix OBJ_)

    Returns Lister<ObjectStoreStatus>

  • Opens the specified ObjectStore

    Parameters

    • name: string
    • check: boolean = true

      if set to false, it will not check if the ObjectStore exists.

    Returns Promise<ObjectStore>