public class FetchConsumeOptions extends BaseConsumeOptions
Modifier and Type | Class and Description |
---|---|
static class |
FetchConsumeOptions.Builder |
Modifier and Type | Field and Description |
---|---|
static FetchConsumeOptions |
DEFAULT_FETCH_OPTIONS |
bytes, DEFAULT_EXPIRES_IN_MILLIS, DEFAULT_MESSAGE_COUNT, DEFAULT_MESSAGE_COUNT_WHEN_BYTES, DEFAULT_THRESHOLD_PERCENT, expiresIn, idleHeartbeat, MAX_HEARTBEAT_MILLIS, MAX_IDLE_HEARTBEAT_PERCENT, messages, MIN_EXPIRES_MILLS, noWait, thresholdPercent
Modifier and Type | Method and Description |
---|---|
static FetchConsumeOptions.Builder |
builder() |
long |
getMaxBytes()
The maximum number of bytes to fetch.
|
int |
getMaxMessages()
The maximum number of messages to fetch.
|
getExpiresInMillis, getIdleHeartbeat, getThresholdPercent, isNoWait, toJson
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
serialize, toJsonValue
public static FetchConsumeOptions DEFAULT_FETCH_OPTIONS
public int getMaxMessages()
public long getMaxBytes()
public static FetchConsumeOptions.Builder builder()