public class BaseConsumeOptions
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseConsumeOptions.Builder<B,CO> |
| Modifier and Type | Field and Description |
|---|---|
protected long |
bytes |
static long |
DEFAULT_EXPIRES_IN_MILLIS |
static int |
DEFAULT_MESSAGE_COUNT |
static int |
DEFAULT_MESSAGE_COUNT_WHEN_BYTES |
static int |
DEFAULT_THRESHOLD_PERCENT |
protected long |
expiresIn |
protected long |
idleHeartbeat |
static long |
MAX_HEARTBEAT_MILLIS |
static int |
MAX_IDLE_HEARTBEAT_PERCENT |
protected int |
messages |
static long |
MIN_EXPIRES_MILLS |
protected boolean |
noWait |
protected int |
thresholdPercent |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseConsumeOptions(BaseConsumeOptions.Builder b) |
| Modifier and Type | Method and Description |
|---|---|
long |
getExpiresInMillis() |
long |
getIdleHeartbeat() |
int |
getThresholdPercent() |
public static final int DEFAULT_MESSAGE_COUNT
public static final int DEFAULT_MESSAGE_COUNT_WHEN_BYTES
public static final int DEFAULT_THRESHOLD_PERCENT
public static final long DEFAULT_EXPIRES_IN_MILLIS
public static final long MIN_EXPIRES_MILLS
public static final long MAX_HEARTBEAT_MILLIS
public static final int MAX_IDLE_HEARTBEAT_PERCENT
protected final int messages
protected final long bytes
protected final long expiresIn
protected final long idleHeartbeat
protected final int thresholdPercent
protected final boolean noWait
protected BaseConsumeOptions(BaseConsumeOptions.Builder b)