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.
|
consume, consume, consume, consume, fetch, fetchBytes, fetchMessages, getConsumerName, iterate, iterate, next, next, next
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()