Table of Contents

Method UpdateAsync

Namespace
NATS.Client.JetStream
Assembly
NATS.Client.JetStream.dll

UpdateAsync(StreamConfig, CancellationToken)

Update stream properties on the server.

ValueTask UpdateAsync(StreamConfig request, CancellationToken cancellationToken = default)

Parameters

request StreamConfig

Stream update request to be sent to the server.

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

ValueTask

Exceptions

NatsJSException

There is an error retrieving the response or this consumer object isn't valid anymore because it was deleted earlier.

NatsJSApiException

Server responded with an error.