Class ThrottleDescription.ThrottleItem
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.webcrawler.ThrottleDescription.ThrottleItem
-
- Enclosing class:
- ThrottleDescription
protected static class ThrottleDescription.ThrottleItem extends java.lang.ObjectClass representing an individual throttle item.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.IntegermaxOpenConnectionsThe maximum open connections, or null if no limit.protected java.lang.DoubleminimumMillisecondsPerByteThe minimum milliseconds between bytes, or null if no limit.protected java.lang.LongminimumMillisecondsPerFetchThe minimum milliseconds per fetch, or null if no limitprotected java.util.regex.PatternpatternThe bin-matching pattern.
-
Constructor Summary
Constructors Constructor Description ThrottleItem(java.util.regex.Pattern p)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetMaxOpenConnections()Get maximum open connections.java.lang.DoublegetMinimumMillisecondsPerByte()Get minimum milliseconds per byte.java.lang.LonggetMinimumMillisecondsPerFetch()Get minimum milliseconds per fetchjava.util.regex.PatterngetPattern()Get the pattern.voidsetMaxOpenConnections(java.lang.Integer value)Set maximum open connections.voidsetMinimumMillisecondsPerByte(java.lang.Double value)Set minimum milliseconds per byte.voidsetMinimumMillisecondsPerFetch(java.lang.Long value)Set minimum milliseconds per fetch
-
-
-
Field Detail
-
pattern
protected final java.util.regex.Pattern pattern
The bin-matching pattern.
-
minimumMillisecondsPerByte
protected java.lang.Double minimumMillisecondsPerByte
The minimum milliseconds between bytes, or null if no limit.
-
minimumMillisecondsPerFetch
protected java.lang.Long minimumMillisecondsPerFetch
The minimum milliseconds per fetch, or null if no limit
-
maxOpenConnections
protected java.lang.Integer maxOpenConnections
The maximum open connections, or null if no limit.
-
-
Method Detail
-
getPattern
public java.util.regex.Pattern getPattern()
Get the pattern.
-
setMinimumMillisecondsPerByte
public void setMinimumMillisecondsPerByte(java.lang.Double value)
Set minimum milliseconds per byte.
-
getMinimumMillisecondsPerByte
public java.lang.Double getMinimumMillisecondsPerByte()
Get minimum milliseconds per byte.
-
setMinimumMillisecondsPerFetch
public void setMinimumMillisecondsPerFetch(java.lang.Long value)
Set minimum milliseconds per fetch
-
getMinimumMillisecondsPerFetch
public java.lang.Long getMinimumMillisecondsPerFetch()
Get minimum milliseconds per fetch
-
setMaxOpenConnections
public void setMaxOpenConnections(java.lang.Integer value)
Set maximum open connections.
-
getMaxOpenConnections
public java.lang.Integer getMaxOpenConnections()
Get maximum open connections.
-
-