public static class FetchConsumeOptions.Builder extends BaseConsumeOptions.Builder<FetchConsumeOptions.Builder,FetchConsumeOptions>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FetchConsumeOptions |
build()
Build the FetchConsumeOptions.
|
protected FetchConsumeOptions.Builder |
getThis() |
FetchConsumeOptions.Builder |
maxBytes(int bytes,
int messages)
The maximum bytes to consume for Fetch.
|
FetchConsumeOptions.Builder |
maxMessages(int messages)
Set the maximum number of messages to fetch
|
bytes, expiresIn, messages, thresholdPercentprotected FetchConsumeOptions.Builder getThis()
getThis in class BaseConsumeOptions.Builder<FetchConsumeOptions.Builder,FetchConsumeOptions>public FetchConsumeOptions.Builder maxMessages(int messages)
messages - the number of messages. Must be greater than 0public FetchConsumeOptions.Builder maxBytes(int bytes, int messages)
bytes - the maximum bytesmessages - the number of messages. Must be greater than 0.public FetchConsumeOptions build()
build in class BaseConsumeOptions.Builder<FetchConsumeOptions.Builder,FetchConsumeOptions>