public interface FetchConsumer extends MessageConsumer
Modifier and Type | Method and Description |
---|---|
Message |
nextMessage()
Read the next message.
|
close, getCachedConsumerInfo, getConsumerInfo, getConsumerName, isFinished, isStopped, stop
Message nextMessage() throws java.lang.InterruptedException, JetStreamStatusCheckedException
java.lang.InterruptedException
- if one is thrown, in order to propagate it upJetStreamStatusCheckedException
- an exception representing a status that requires attention,
such as the consumer was deleted on the server in the middle of use.