public interface ConsumerContext extends BaseConsumerContext
| Modifier and Type | Method and Description |
|---|---|
ConsumerInfo |
getCachedConsumerInfo()
Gets information about the consumer behind this subscription.
|
ConsumerInfo |
getConsumerInfo()
Gets information about the consumer behind this subscription.
|
java.lang.String |
getConsumerName()
Gets the consumer name that was used to create the context.
|
consume, consume, consume, consume, fetch, fetchBytes, fetchMessages, iterate, iterate, next, next, nextjava.lang.String getConsumerName()
ConsumerInfo getConsumerInfo() throws java.io.IOException, JetStreamApiException
java.io.IOException - covers various communication issues with the NATS
server such as timeout or interruptionJetStreamApiException - the request had an error related to the dataConsumerInfo getCachedConsumerInfo()