public class BaseConsumeOptions extends java.lang.Object implements JsonSerializable
| 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 java.lang.String |
group |
protected long |
idleHeartbeat |
static long |
MAX_HEARTBEAT_MILLIS |
static int |
MAX_IDLE_HEARTBEAT_PERCENT |
protected int |
messages |
static long |
MIN_EXPIRES_MILLS |
protected long |
minAckPending |
protected long |
minPending |
protected boolean |
raiseStatusWarnings |
protected int |
thresholdPercent |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseConsumeOptions(BaseConsumeOptions.Builder<?,?> b) |
| Modifier and Type | Method and Description |
|---|---|
long |
getExpiresInMillis() |
java.lang.String |
getGroup() |
long |
getIdleHeartbeat() |
long |
getMinAckPending() |
long |
getMinPending() |
int |
getThresholdPercent() |
boolean |
raiseStatusWarnings() |
protected void |
subclassSpecificToJson(java.lang.StringBuilder sb) |
java.lang.String |
toJson() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserialize, toJsonValuepublic 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 int thresholdPercent
protected final long idleHeartbeat
protected final java.lang.String group
protected final long minPending
protected final long minAckPending
protected final boolean raiseStatusWarnings
protected BaseConsumeOptions(BaseConsumeOptions.Builder<?,?> b)
public java.lang.String toJson()
toJson in interface JsonSerializableprotected void subclassSpecificToJson(java.lang.StringBuilder sb)
public long getExpiresInMillis()
public long getIdleHeartbeat()
public int getThresholdPercent()
public boolean raiseStatusWarnings()
public java.lang.String getGroup()
public long getMinPending()
public long getMinAckPending()