protected static class Throttler.FetchThrottler extends java.lang.Object implements IFetchThrottler
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
binNames |
protected Throttler.ThrottlingGroup |
parent |
_rcsid| Constructor and Description |
|---|
FetchThrottler(Throttler.ThrottlingGroup parent,
java.lang.String[] binNames) |
| Modifier and Type | Method and Description |
|---|---|
IStreamThrottler |
createFetchStream()
Open a fetch stream.
|
boolean |
obtainFetchDocumentPermission()
Get permission to fetch a document.
|
boolean |
obtainFetchDocumentPermission(IBreakCheck breakCheck)
Get permission to fetch a document.
|
protected final Throttler.ThrottlingGroup parent
protected final java.lang.String[] binNames
public FetchThrottler(Throttler.ThrottlingGroup parent, java.lang.String[] binNames)
public boolean obtainFetchDocumentPermission()
throws java.lang.InterruptedException
obtainFetchDocumentPermission in interface IFetchThrottlerjava.lang.InterruptedExceptionpublic boolean obtainFetchDocumentPermission(IBreakCheck breakCheck) throws java.lang.InterruptedException, BreakException
obtainFetchDocumentPermission in interface IFetchThrottlerjava.lang.InterruptedExceptionBreakExceptionpublic IStreamThrottler createFetchStream()
createFetchStream in interface IFetchThrottler