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
A group must be set if a
PriorityPolicy has been specified. |
long |
getIdleHeartbeat()
Get the idle heartbeat value
|
long |
getMinAckPending()
Get the min ack pending setting as per the overflow priority group.
|
long |
getMinPending()
Get the min pending setting as per the overflow priority group.
|
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()
PriorityPolicy has been specified.
The group must be consistent with the groups specified in the ConsumerConfiguration.public int getPriority()
public long getMinPending()
PriorityPolicy.public long getMinAckPending()
PriorityPolicy.