protected static class RSSConnector.ThrottleSpec
extends java.lang.Object
implements org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxOpenConnectionsPerServer |
protected double |
minimumMillisecondsPerBytePerServer |
protected long |
minimumMillisecondsPerFetchPerServer |
| Constructor and Description |
|---|
ThrottleSpec(int maxOpenConnectionsPerServer,
long minimumMillisecondsPerFetchPerServer,
double minimumMillisecondsPerBytePerServer) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxOpenConnections(java.lang.String binName)
Given a bin name, find the max open connections to use for that bin.
|
double |
getMinimumMillisecondsPerByte(java.lang.String binName)
Look up minimum milliseconds per byte for a bin.
|
long |
getMinimumMillisecondsPerFetch(java.lang.String binName)
Look up minimum milliseconds for a fetch for a bin.
|
protected final int maxOpenConnectionsPerServer
protected final long minimumMillisecondsPerFetchPerServer
protected final double minimumMillisecondsPerBytePerServer
public ThrottleSpec(int maxOpenConnectionsPerServer,
long minimumMillisecondsPerFetchPerServer,
double minimumMillisecondsPerBytePerServer)
public int getMaxOpenConnections(java.lang.String binName)
getMaxOpenConnections in interface org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpecpublic double getMinimumMillisecondsPerByte(java.lang.String binName)
getMinimumMillisecondsPerByte in interface org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpecpublic long getMinimumMillisecondsPerFetch(java.lang.String binName)
getMinimumMillisecondsPerFetch in interface org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec