public interface OrderedConsumerContext extends BaseConsumerContext
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.lang.String |
getConsumerName()
Gets the consumer name created for the underlying Ordered Consumer
This will return null until the first consume (next, iterate, fetch, consume)
is executed because the JetStream consumer, which carries the name,
has not been created yet.
|
consume, consume, consume, consume, fetch, fetchBytes, fetchMessages, iterate, iterate, next, next, next, unpin@Nullable java.lang.String getConsumerName()
The consumer name is subject to change for 2 reasons. 1. Any time next(...) is called 2. Anytime a message is received out of order for instance because of a disconnection
If your OrderedConsumerConfiguration has a consumerNamePrefix, the consumer name will always start with the prefix
getConsumerName in interface BaseConsumerContext