public class FetchConsumeOptions extends BaseConsumeOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
FetchConsumeOptions.Builder
The builder for FetchConsumeOptions
|
| Modifier and Type | Field and Description |
|---|---|
static FetchConsumeOptions |
DEFAULT_FETCH_OPTIONS
An instance of FetchConsumeOptions representing the default fetch options
|
DEFAULT_EXPIRES_IN_MILLIS, DEFAULT_MESSAGE_COUNT, DEFAULT_MESSAGE_COUNT_WHEN_BYTES, DEFAULT_THRESHOLD_PERCENT, MAX_HEARTBEAT_MILLIS, MAX_IDLE_HEARTBEAT_PERCENT, MIN_EXPIRES_MILLS| Modifier and Type | Method and Description |
|---|---|
static FetchConsumeOptions.Builder |
builder()
Get an instance of the builder
|
long |
getMaxBytes()
The maximum number of bytes to fetch.
|
int |
getMaxMessages()
The maximum number of messages to fetch.
|
boolean |
isNoWait()
If the options specify no wait
|
getExpiresInMillis, getGroup, getIdleHeartbeat, getMinAckPending, getMinPending, getPriority, getThresholdPercent, raiseStatusWarnings, toJsonpublic static final FetchConsumeOptions DEFAULT_FETCH_OPTIONS
public int getMaxMessages()
public long getMaxBytes()
public boolean isNoWait()
public static FetchConsumeOptions.Builder builder()