|
int64_t | MaxWait |
| Amount of time (in milliseconds) to wait for a publish response, default will the context's Wait value.
|
|
const char * | MsgId |
| Message ID used for de-duplication.
|
|
const char * | ExpectStream |
| Expected stream to respond from the publish call.
|
|
const char * | ExpectLastMsgId |
| Expected last message ID in the stream.
|
|
uint64_t | ExpectLastSeq |
| Expected last message sequence in the stream.
|
|
uint64_t | ExpectLastSubjectSeq |
| Expected last message sequence for the subject in the stream.
|
|
bool | ExpectNoMessage |
| Expected no message (that is, sequence == 0) for the subject in the stream.
|
|
int64_t | MsgTTL |
| Message time to live (TTL) in milliseconds, used by the server to expire the message. Requires nats-server v2.11.0 or later.
|
|
JetStream publish options.
These are options that you can provide to JetStream publish APIs.
The common usage will be to initialize a structure on the stack by calling jsPubOptions_Init. Note that strings are owned by the application and need to be valid for the duration of the API call this object is passed to.
- Note
- It is the user responsibility to free the strings if they have been allocated.
- See also
- jsPubOptions_Init