public class ThrottleDescription extends Object implements IThrottleSpec
Modifier and Type | Class and Description |
---|---|
protected static class |
ThrottleDescription.ThrottleItem
Class representing an individual throttle item.
|
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected Map<String,ThrottleDescription.ThrottleItem> |
patternHash
This is the hash that contains everything.
|
Constructor and Description |
---|
ThrottleDescription(ConfigParams configData)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxOpenConnections(String binName)
Given a bin name, find the max open connections to use for that bin.
|
double |
getMinimumMillisecondsPerByte(String binName)
Look up minimum milliseconds per byte for a bin.
|
long |
getMinimumMillisecondsPerFetch(String binName)
Look up minimum milliseconds for a fetch for a bin.
|
public static final String _rcsid
protected Map<String,ThrottleDescription.ThrottleItem> patternHash
public ThrottleDescription(ConfigParams configData) throws ManifoldCFException
ManifoldCFException
public int getMaxOpenConnections(String binName)
getMaxOpenConnections
in interface IThrottleSpec
public double getMinimumMillisecondsPerByte(String binName)
getMinimumMillisecondsPerByte
in interface IThrottleSpec
public long getMinimumMillisecondsPerFetch(String binName)
getMinimumMillisecondsPerFetch
in interface IThrottleSpec