NATS C Client with JetStream and Streaming support
3.9.1
The nats.io C Client, Supported by Synadia Communications Inc.
|
#include <nats.h>
Public Attributes | |
const char * | Name |
const char * | Durable |
const char * | Description |
jsDeliverPolicy | DeliverPolicy |
uint64_t | OptStartSeq |
int64_t | OptStartTime |
UTC time expressed as number of nanoseconds since epoch. More... | |
jsAckPolicy | AckPolicy |
int64_t | AckWait |
int64_t | MaxDeliver |
int64_t * | BackOff |
Redelivery durations expressed in nanoseconds. More... | |
int | BackOffLen |
const char * | FilterSubject |
jsReplayPolicy | ReplayPolicy |
uint64_t | RateLimit |
const char * | SampleFrequency |
int64_t | MaxWaiting |
int64_t | MaxAckPending |
bool | FlowControl |
int64_t | Heartbeat |
Heartbeat interval expressed in number of nanoseconds. More... | |
bool | HeadersOnly |
int64_t | MaxRequestBatch |
Maximum Pull Consumer request batch size. More... | |
int64_t | MaxRequestExpires |
Maximum Pull Consumer request expiration, expressed in number of nanoseconds. More... | |
int64_t | MaxRequestMaxBytes |
Maximum Pull Consumer request maximum bytes. More... | |
const char * | DeliverSubject |
const char * | DeliverGroup |
int64_t | InactiveThreshold |
How long the server keeps an ephemeral after detecting loss of interest, expressed in number of nanoseconds. More... | |
int64_t | Replicas |
bool | MemoryStorage |
const char ** | FilterSubjects |
Multiple filter subjects. More... | |
int | FilterSubjectsLen |
natsMetadata | Metadata |
User-provided metadata for the consumer, encoded as an array of {"key", "value",...}. More... | |
int64_t | PauseUntil |
Suspends the consumer until this deadline, represented as number of nanoseconds since epoch. More... | |
Configuration of a JetStream consumer.
In order to add a consumer, a configuration needs to be set. The typical usage would be to initialize all required objects on the stack and configure them, then pass the pointer to the configuration to js_AddConsumer.
OptStartTime
needs to be expressed as the number of nanoseconds passed since 00:00:00 UTC Thursday, 1 January 1970.SampleFrequency
is a sampling value, represented as a string such as "50" for 50%, that causes the server to produce advisories for consumer ack metrics.Durable
cannot contain the character ".".HeadersOnly
means that the subscription will not receive any message payload, instead, it will receive only messages headers (if present) with the addition of the header JSMsgSize ("Nats-Msg-Size"), whose value is the payload size.const char* jsConsumerConfig::Name |
const char* jsConsumerConfig::Durable |
const char* jsConsumerConfig::Description |
jsDeliverPolicy jsConsumerConfig::DeliverPolicy |
uint64_t jsConsumerConfig::OptStartSeq |
int64_t jsConsumerConfig::OptStartTime |
jsAckPolicy jsConsumerConfig::AckPolicy |
int64_t jsConsumerConfig::AckWait |
int64_t jsConsumerConfig::MaxDeliver |
int64_t* jsConsumerConfig::BackOff |
int jsConsumerConfig::BackOffLen |
const char* jsConsumerConfig::FilterSubject |
jsReplayPolicy jsConsumerConfig::ReplayPolicy |
uint64_t jsConsumerConfig::RateLimit |
const char* jsConsumerConfig::SampleFrequency |
int64_t jsConsumerConfig::MaxWaiting |
int64_t jsConsumerConfig::MaxAckPending |
bool jsConsumerConfig::FlowControl |
int64_t jsConsumerConfig::Heartbeat |
bool jsConsumerConfig::HeadersOnly |
int64_t jsConsumerConfig::MaxRequestBatch |
int64_t jsConsumerConfig::MaxRequestExpires |
int64_t jsConsumerConfig::MaxRequestMaxBytes |
const char* jsConsumerConfig::DeliverSubject |
const char* jsConsumerConfig::DeliverGroup |
int64_t jsConsumerConfig::InactiveThreshold |
int64_t jsConsumerConfig::Replicas |
bool jsConsumerConfig::MemoryStorage |
const char** jsConsumerConfig::FilterSubjects |
int jsConsumerConfig::FilterSubjectsLen |
natsMetadata jsConsumerConfig::Metadata |
int64_t jsConsumerConfig::PauseUntil |