NATS .NET Client  1.1.4
The NATS.io .NET C# Client
NATS.Client.JetStream.IConsumerContext Interface Reference
Inheritance diagram for NATS.Client.JetStream.IConsumerContext:
NATS.Client.JetStream.IBaseConsumerContext

Public Member Functions

ConsumerInfo GetConsumerInfo ()
 
ConsumerInfo GetCachedConsumerInfo ()
 
- Public Member Functions inherited from NATS.Client.JetStream.IBaseConsumerContext
Msg Next (int maxWaitMillis=BaseConsumeOptions.DefaultExpiresInMillis)
 
IFetchConsumer FetchMessages (int maxMessages)
 
IFetchConsumer FetchBytes (int maxBytes)
 
IFetchConsumer Fetch (FetchConsumeOptions fetchConsumeOptions)
 
IIterableConsumer Iterate (ConsumeOptions consumeOptions=null)
 
IMessageConsumer Consume (EventHandler< MsgHandlerEventArgs > handler, ConsumeOptions consumeOptions=null)
 

Additional Inherited Members

- Properties inherited from NATS.Client.JetStream.IBaseConsumerContext
string ConsumerName [get]
 

Detailed Description

The Consumer Context provides a convenient interface around a defined JetStream Consumer

Member Function Documentation

◆ GetCachedConsumerInfo()

ConsumerInfo NATS.Client.JetStream.IConsumerContext.GetCachedConsumerInfo ( )

Gets information about the consumer behind this subscription. This returns the last read version of Consumer Info, which could technically be out of date.

Returns
consumer information

◆ GetConsumerInfo()

ConsumerInfo NATS.Client.JetStream.IConsumerContext.GetConsumerInfo ( )

Gets information about the consumer behind this subscription.

Returns
consumer information

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