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.CcChangeHelper
INTERNAL CLASS ONLY, SUBJECT TO CHANGE
Helper class to identify the initial or default value of a field
and to make it easy to compare to other instances where the server provides
a default value.
|
| Modifier and Type | Field and Description |
|---|---|
protected AckPolicy |
ackPolicy |
protected java.time.Duration |
ackWait |
protected java.lang.String |
deliverGroup |
protected DeliverPolicy |
deliverPolicy |
protected java.lang.String |
deliverSubject |
protected java.lang.String |
description |
protected java.lang.String |
durable |
protected java.lang.String |
filterSubject |
protected java.lang.Boolean |
flowControl |
protected java.lang.Boolean |
headersOnly |
protected java.time.Duration |
idleHeartbeat |
protected java.time.Duration |
inactiveThreshold |
protected java.lang.Long |
maxAckPending |
protected java.lang.Long |
maxBatch |
protected java.lang.Long |
maxDeliver |
protected java.time.Duration |
maxExpires |
protected java.lang.Long |
maxPullWaiting |
static java.time.Duration |
MIN_ACK_WAIT |
static java.time.Duration |
MIN_IDLE_HEARTBEAT |
protected java.lang.Long |
rateLimit |
protected ReplayPolicy |
replayPolicy |
protected java.lang.String |
sampleFrequency |
protected java.lang.Long |
startSeq |
protected java.time.ZonedDateTime |
startTime |
| Modifier | Constructor and Description |
|---|---|
protected |
ConsumerConfiguration(ConsumerConfiguration cc) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ackPolicyWasSet()
Gets whether ack policy for this consumer configuration was set or left unset
|
static ConsumerConfiguration.Builder |
builder()
Creates a builder for the publish options.
|
static ConsumerConfiguration.Builder |
builder(ConsumerConfiguration cc)
Creates a builder for the publish options.
|
boolean |
deliverPolicyWasSet()
Gets whether deliver policy of this consumer configuration was set or left unset
|
boolean |
flowControlWasSet()
Gets whether flow control for this consumer configuration was set or left unset
|
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.
|
java.time.Duration |
getIdleHeartbeat()
Gets the idle heart beat wait time
|
java.time.Duration |
getInactiveThreshold()
Get the amount of time before the ephemeral consumer is deemed inactive.
|
long |
getMaxAckPending()
Gets the maximum ack pending configuration.
|
java.lang.Long |
getMaxBatch()
Get the max batch size for the server to allow on pull requests.
|
long |
getMaxDeliver()
Gets the max delivery amount of this consumer configuration.
|
java.time.Duration |
getMaxExpires()
Get the max amount of expire time for the server to allow on pull requests.
|
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 |
headersOnlyWasSet()
Gets whether headers only for this consumer configuration was set or left unset
|
boolean |
isFlowControl()
Get the flow control flag indicating whether it's on or off
|
boolean |
isHeadersOnly()
Get the header only flag indicating whether it's on or off
|
boolean |
maxAckPendingWasSet()
Gets whether max ack pending for this consumer configuration was set or left unset
|
boolean |
maxBatchWasSet()
Gets whether max batch for this consumer configuration was set or left unset
|
boolean |
maxDeliverWasSet()
Gets whether max deliver for this consumer configuration was set or left unset
|
boolean |
maxPullWaitingWasSet()
Gets whether max pull waiting for this consumer configuration was set or left unset
|
boolean |
rateLimitWasSet()
Gets whether rate limit for this consumer configuration was set or left unset
|
boolean |
replayPolicyWasSet()
Gets whether replay policy for this consumer configuration was set or left unset
|
boolean |
startSeqWasSet()
Gets whether start sequence for this consumer configuration was set or left unset
|
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, waitserializepublic static final java.time.Duration MIN_ACK_WAIT
public static final java.time.Duration MIN_IDLE_HEARTBEAT
protected final DeliverPolicy deliverPolicy
protected final AckPolicy ackPolicy
protected final ReplayPolicy replayPolicy
protected final java.lang.String description
protected final java.lang.String durable
protected final java.lang.String deliverSubject
protected final java.lang.String deliverGroup
protected final java.lang.String filterSubject
protected final java.lang.String sampleFrequency
protected final java.time.ZonedDateTime startTime
protected final java.time.Duration ackWait
protected final java.time.Duration idleHeartbeat
protected final java.time.Duration maxExpires
protected final java.time.Duration inactiveThreshold
protected final java.lang.Long startSeq
protected final java.lang.Long maxDeliver
protected final java.lang.Long rateLimit
protected final java.lang.Long maxAckPending
protected final java.lang.Long maxPullWaiting
protected final java.lang.Long maxBatch
protected final java.lang.Boolean flowControl
protected final java.lang.Boolean headersOnly
protected ConsumerConfiguration(ConsumerConfiguration cc)
public java.lang.String toJson()
toJson in interface JsonSerializablepublic 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 isHeadersOnly()
public java.lang.Long getMaxBatch()
public java.time.Duration getMaxExpires()
public java.time.Duration getInactiveThreshold()
public boolean deliverPolicyWasSet()
public boolean ackPolicyWasSet()
public boolean replayPolicyWasSet()
public boolean startSeqWasSet()
public boolean maxDeliverWasSet()
public boolean rateLimitWasSet()
public boolean maxAckPendingWasSet()
public boolean maxPullWaitingWasSet()
public boolean maxBatchWasSet()
public boolean flowControlWasSet()
public boolean headersOnlyWasSet()
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