public class ConsumerConfiguration extends java.lang.Object implements JsonSerializable
Modifier and Type | Class and Description |
---|---|
static class |
ConsumerConfiguration.Builder
ConsumerConfiguration is created using a Builder.
|
static class |
ConsumerConfiguration.CcNumeric |
Modifier and Type | Field and Description |
---|---|
static java.time.Duration |
DEFAULT_ACK_WAIT |
static java.time.Duration |
DEFAULT_IDLE_HEARTBEAT |
static java.time.Duration |
MIN_ACK_WAIT |
static java.time.Duration |
MIN_IDLE_HEARTBEAT |
Modifier and Type | Method and Description |
---|---|
static ConsumerConfiguration.Builder |
builder()
Creates a builder for the publish options.
|
static ConsumerConfiguration.Builder |
builder(ConsumerConfiguration cc)
Creates a builder for the publish options.
|
AckPolicy |
getAckPolicy()
Gets the acknowledgment policy of this consumer configuration.
|
java.time.Duration |
getAckWait()
Gets the acknowledgment wait of this consumer configuration.
|
java.lang.String |
getDeliverGroup()
Gets the deliver group of this consumer configuration.
|
DeliverPolicy |
getDeliverPolicy()
Gets the deliver policy of this consumer configuration.
|
java.lang.String |
getDeliverSubject()
Gets the deliver subject of this consumer configuration.
|
java.lang.String |
getDescription()
Gets the name of the description of this consumer configuration.
|
java.lang.String |
getDurable()
Gets the name of the durable subscription for this consumer configuration.
|
java.lang.String |
getFilterSubject()
Gets the max filter subject of this consumer configuration.
|
boolean |
getHeadersOnly()
Get the header only flag indicating whether it's on or off
|
java.time.Duration |
getIdleHeartbeat()
Gets the idle heart beat wait time
|
long |
getMaxAckPending()
Gets the maximum ack pending configuration.
|
long |
getMaxDeliver()
Gets the max delivery amount of this consumer configuration.
|
long |
getMaxPullWaiting()
Get the number of pulls that can be outstanding on a pull consumer
|
long |
getRateLimit()
Gets the rate limit for this consumer configuration.
|
ReplayPolicy |
getReplayPolicy()
Gets the replay policy of this consumer configuration.
|
java.lang.String |
getSampleFrequency()
Gets the sample frequency.
|
long |
getStartSequence()
Gets the start sequence of this consumer configuration.
|
java.time.ZonedDateTime |
getStartTime()
Gets the start time of this consumer configuration.
|
boolean |
isFlowControl()
Get the flow control flag indicating whether it's on or off
|
java.lang.String |
toJson()
Returns a JSON representation of this consumer configuration.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
serialize
public static final java.time.Duration MIN_ACK_WAIT
public static final java.time.Duration MIN_IDLE_HEARTBEAT
public static final java.time.Duration DEFAULT_ACK_WAIT
public static final java.time.Duration DEFAULT_IDLE_HEARTBEAT
public java.lang.String toJson()
toJson
in interface JsonSerializable
public java.lang.String getDescription()
public java.lang.String getDurable()
public java.lang.String getDeliverSubject()
public java.lang.String getDeliverGroup()
public DeliverPolicy getDeliverPolicy()
public long getStartSequence()
public java.time.ZonedDateTime getStartTime()
public AckPolicy getAckPolicy()
public java.time.Duration getAckWait()
public long getMaxDeliver()
public java.lang.String getFilterSubject()
public ReplayPolicy getReplayPolicy()
public long getRateLimit()
public long getMaxAckPending()
public java.lang.String getSampleFrequency()
public java.time.Duration getIdleHeartbeat()
public boolean isFlowControl()
public long getMaxPullWaiting()
public boolean getHeadersOnly()
public static ConsumerConfiguration.Builder builder()
public static ConsumerConfiguration.Builder builder(ConsumerConfiguration cc)
cc
- the consumer configurationpublic java.lang.String toString()
toString
in class java.lang.Object