public interface ConsumerContext
| Modifier and Type | Method and Description |
|---|---|
ManualConsumer |
consume() |
ManualConsumer |
consume(ConsumeOptions consumeOptions) |
SimpleConsumer |
consume(MessageHandler handler) |
SimpleConsumer |
consume(MessageHandler handler,
ConsumeOptions consumeOptions) |
FetchConsumer |
fetch(FetchConsumeOptions consumeOptions) |
FetchConsumer |
fetch(int maxMessages) |
FetchConsumer |
fetch(int maxBytes,
int maxMessages) |
ConsumerInfo |
getConsumerInfo() |
java.lang.String |
getName() |
java.lang.String getName()
ConsumerInfo getConsumerInfo() throws java.io.IOException, JetStreamApiException
java.io.IOExceptionJetStreamApiExceptionFetchConsumer fetch(int maxMessages) throws java.io.IOException, JetStreamApiException
java.io.IOExceptionJetStreamApiExceptionFetchConsumer fetch(int maxBytes, int maxMessages) throws java.io.IOException, JetStreamApiException
java.io.IOExceptionJetStreamApiExceptionFetchConsumer fetch(FetchConsumeOptions consumeOptions) throws java.io.IOException, JetStreamApiException
java.io.IOExceptionJetStreamApiExceptionManualConsumer consume() throws java.io.IOException, JetStreamApiException
java.io.IOExceptionJetStreamApiExceptionManualConsumer consume(ConsumeOptions consumeOptions) throws java.io.IOException, JetStreamApiException
java.io.IOExceptionJetStreamApiExceptionSimpleConsumer consume(MessageHandler handler) throws java.io.IOException, JetStreamApiException
java.io.IOExceptionJetStreamApiExceptionSimpleConsumer consume(MessageHandler handler, ConsumeOptions consumeOptions) throws java.io.IOException, JetStreamApiException
java.io.IOExceptionJetStreamApiException