public static class TimeLimitingCollector.TimeExceededException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
private int |
lastDocCollected |
private long |
timeAllowed |
private long |
timeElapsed |
Modifier | Constructor and Description |
---|---|
private |
TimeExceededException(long timeAllowed,
long timeElapsed,
int lastDocCollected) |
Modifier and Type | Method and Description |
---|---|
int |
getLastDocCollected()
Returns last doc (absolute doc id) that was collected when the search time exceeded.
|
long |
getTimeAllowed()
Returns allowed time (milliseconds).
|
long |
getTimeElapsed()
Returns elapsed time (milliseconds).
|
private long timeAllowed
private long timeElapsed
private int lastDocCollected
private TimeExceededException(long timeAllowed, long timeElapsed, int lastDocCollected)
public long getTimeAllowed()
public long getTimeElapsed()
public int getLastDocCollected()