protected static class ThrottleDescription.ThrottleItem extends Object
Modifier and Type | Field and Description |
---|---|
protected Integer |
maxOpenConnections
The maximum open connections, or null if no limit.
|
protected Double |
minimumMillisecondsPerByte
The minimum milliseconds between bytes, or null if no limit.
|
protected Long |
minimumMillisecondsPerFetch
The minimum milliseconds per fetch, or null if no limit
|
protected Pattern |
pattern
The bin-matching pattern.
|
Constructor and Description |
---|
ThrottleDescription.ThrottleItem(Pattern p)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxOpenConnections()
Get maximum open connections.
|
Double |
getMinimumMillisecondsPerByte()
Get minimum milliseconds per byte.
|
Long |
getMinimumMillisecondsPerFetch()
Get minimum milliseconds per fetch
|
Pattern |
getPattern()
Get the pattern.
|
void |
setMaxOpenConnections(Integer value)
Set maximum open connections.
|
void |
setMinimumMillisecondsPerByte(Double value)
Set minimum milliseconds per byte.
|
void |
setMinimumMillisecondsPerFetch(Long value)
Set minimum milliseconds per fetch
|
protected final Pattern pattern
protected Double minimumMillisecondsPerByte
protected Long minimumMillisecondsPerFetch
protected Integer maxOpenConnections
public ThrottleDescription.ThrottleItem(Pattern p)
public Pattern getPattern()
public void setMinimumMillisecondsPerByte(Double value)
public Double getMinimumMillisecondsPerByte()
public void setMinimumMillisecondsPerFetch(Long value)
public Long getMinimumMillisecondsPerFetch()
public void setMaxOpenConnections(Integer value)
public Integer getMaxOpenConnections()