public static class ConsumerLimits.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ConsumerLimits |
build()
Build a ConsumerLimits object
|
ConsumerLimits.Builder |
inactiveThreshold(java.time.Duration inactiveThreshold)
sets the amount of time before the consumer is deemed inactive.
|
ConsumerLimits.Builder |
inactiveThreshold(long inactiveThreshold)
sets the amount of time before the consumer is deemed inactive.
|
ConsumerLimits.Builder |
maxAckPending(long maxAckPending)
Sets the maximum ack pending.
|
ConsumerLimits.Builder |
maxAckPending(java.lang.Long maxAckPending)
Sets the maximum ack pending or null to unset / clear.
|
public ConsumerLimits.Builder inactiveThreshold(java.time.Duration inactiveThreshold)
inactiveThreshold
- the threshold durationpublic ConsumerLimits.Builder inactiveThreshold(long inactiveThreshold)
inactiveThreshold
- the threshold duration in millisecondspublic ConsumerLimits.Builder maxAckPending(java.lang.Long maxAckPending)
maxAckPending
- maximum pending acknowledgements.public ConsumerLimits.Builder maxAckPending(long maxAckPending)
maxAckPending
- maximum pending acknowledgements.public ConsumerLimits build()