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.
|
| 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.
|
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 |
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.
|
long |
getMaxAckPending()
Gets the maximum ack pending configuration.
|
long |
getMaxDeliver()
Gets the max delivery amount of this consumer configuration.
|
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.
|
java.lang.String |
toJson()
Returns a JSON representation of this consumer configuration.
|
java.lang.String |
toString() |
public java.lang.String toJson()
toJson in interface JsonSerializablepublic java.lang.String getDurable()
public java.lang.String getDeliverSubject()
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 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