NATS Streaming .NET Client
0.1.5
The nats.io .NET Streaming C# Client
|
Public Member Functions | |
void | StartAt (ulong sequence) |
void | StartAt (DateTime time) |
void | StartAt (TimeSpan duration) |
void | StartWithLastReceived () |
void | DeliverAllAvailable () |
Static Public Member Functions | |
static StanSubscriptionOptions | GetDefaultOptions () |
Properties | |
string | DurableName [get, set] |
int | MaxInflight [get, set] |
int | AckWait [get, set] |
bool | ManualAcks [get, set] |
bool | LeaveOpen [get, set] |
The StanSubsciption options class represents various options available to configure a subscription to a subject on the NATS streaming server.
void STAN.Client.StanSubscriptionOptions.DeliverAllAvailable | ( | ) |
Deliver all messages available.
|
static |
Returns a copy of the default subscription options.
void STAN.Client.StanSubscriptionOptions.StartAt | ( | ulong | sequence | ) |
Optional start sequence number.
sequence |
void STAN.Client.StanSubscriptionOptions.StartAt | ( | DateTime | time | ) |
Optional start time. UTC is recommended although a local time will be converted to UTC.
time |
void STAN.Client.StanSubscriptionOptions.StartAt | ( | TimeSpan | duration | ) |
Optional start at time delta.
duration |
void STAN.Client.StanSubscriptionOptions.StartWithLastReceived | ( | ) |
Start with the last received message.
|
getset |
Controls the time the cluster will wait for an ACK for a given message in milliseconds.
The value must be at least one second.
|
getset |
DurableName, if set will survive client restarts.
|
getset |
Do Close() on Disposing subscription if true, or Unsubscribe(). If you want to resume subscription with durable name, set true.
If Close() or Unsubscribe() is called before Disposing, this flag has no effect
|
getset |
Controls the time the cluster will wait for an ACK for a given message.
|
getset |
Controls the number of messages the cluster will have inflight without an ACK.