NATS C Client with JetStream and Streaming support: jsOptionsStreamPurge Struct Reference

NATS C Client with JetStream and Streaming support 3.10.0 The nats.io C Client, Supported by Synadia Communications Inc.

Loading...
Searching...
No Matches
Public Attributes | List of all members
jsOptionsStreamPurge Struct Reference
Types

`#include <nats.h>`

## Public Attributes
const char * | Subject
| This is the subject to match against messages for the purge command.
uint64_t | Sequence
| Purge up to but not including sequence.
uint64_t | Keep
| Number of messages to keep.

## Detailed Description

Advanced stream purge options

- `Subject` will filter the purge request to only messages that match the subject, which can have wildcards.
- `Sequence` will purge up to but not including this sequence and can be combined with subject filtering.
- `Keep` will specify how many messages to keep and can be combined with subject filtering.

Note
  `Sequence` and `Keep` are mutually exclusive, so both can not be set at the same time.

## Member Data Documentation

## ◆ Subject

const char* jsOptionsStreamPurge::Subject

## ◆ Sequence

uint64_t jsOptionsStreamPurge::Sequence

## ◆ Keep

uint64_t jsOptionsStreamPurge::Keep

The documentation for this struct was generated from the following file:

- nats.h