|
NATS C Client with JetStream and Streaming support
3.15.0
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. | |
| jsAckPolicy | AckPolicy |
| int64_t | AckWait |
| int64_t | MaxDeliver |
| int64_t * | BackOff |
| Redelivery durations expressed in nanoseconds. | |
| 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. | |
| bool | HeadersOnly |
| int64_t | MaxRequestBatch |
| Maximum Pull Consumer request batch size. | |
| int64_t | MaxRequestExpires |
| Maximum Pull Consumer request expiration, expressed in number of nanoseconds. | |
| int64_t | MaxRequestMaxBytes |
| Maximum Pull Consumer request maximum bytes. | |
| 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. | |
| int64_t | Replicas |
| bool | MemoryStorage |
| const char ** | FilterSubjects |
| Multiple filter subjects. | |
| int | FilterSubjectsLen |
| natsMetadata | Metadata |
| User-provided metadata for the consumer, encoded as an array of {"key", "value",...}. | |
| int64_t | PauseUntil |
| Suspends the consumer until this deadline, represented as number of nanoseconds since epoch. Requires nats-server v2.11.0 or later. | |
| const char * | PriorityPolicy |
| Represents the priority policy the consumer is set to. Must be "pinned_client" or "overflow". Requires nats-server v2.11.0 or later and v2.12.0 or later for "prioritized". | |
| int64_t | PinnedTTL |
| PinnedTTL represents the time after which the client will be unpinned if no new pull requests are sent. Used with PriorityPolicyPinned. Expressed in nanoseconds. Requires nats-server v2.11.0 or later. | |
| const char ** | PriorityGroups |
| The list of priority groups this consumer supports. | |
| int | PriorityGroupsLen |
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.
| 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 |
| const char* jsConsumerConfig::PriorityPolicy |
| int64_t jsConsumerConfig::PinnedTTL |
| const char** jsConsumerConfig::PriorityGroups |
| int jsConsumerConfig::PriorityGroupsLen |