public class BaseConsumeOptions
extends java.lang.Object
implements io.nats.client.support.JsonSerializable
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_EXPIRES_IN_MILLIS
constant for default expires in millis
|
static int |
DEFAULT_MESSAGE_COUNT
constant for default message count
|
static int |
DEFAULT_MESSAGE_COUNT_WHEN_BYTES
constant for default message count when bytes
|
static int |
DEFAULT_THRESHOLD_PERCENT
constant for default threshold percent
|
static long |
MAX_HEARTBEAT_MILLIS
constant for max heartbeat millis
|
static int |
MAX_IDLE_HEARTBEAT_PERCENT
constant for max idle heartbeat percent
|
static long |
MIN_EXPIRES_MILLS
constant for min expires mills
|
| Modifier and Type | Method and Description |
|---|---|
long |
getExpiresInMillis()
Get the expires setting
|
java.lang.String |
getGroup()
Get the priority group setting
|
long |
getIdleHeartbeat()
Get the idle heartbeat value
|
long |
getMinAckPending()
Get the min ack pending setting
|
long |
getMinPending()
Get the min pending setting
|
int |
getPriority()
Get the priority setting
|
int |
getThresholdPercent()
Get the threshold percent setting
|
boolean |
raiseStatusWarnings()
Whether to raise status warnings to the error listener
|
@NonNull java.lang.String |
toJson() |
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
public @NonNull java.lang.String toJson()
toJson in interface io.nats.client.support.JsonSerializablepublic long getExpiresInMillis()
public long getIdleHeartbeat()
public int getThresholdPercent()
public boolean raiseStatusWarnings()
public java.lang.String getGroup()
public int getPriority()
public long getMinPending()
public long getMinAckPending()