|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.client.cache.InputLimit
@NotThreadSafe public class InputLimit
Used to limiting the size of an incoming response body of unknown size that is optimistically being read in anticipation of caching it.
| Constructor Summary | |
|---|---|
InputLimit(long value)
Create a limit for how many bytes of a response body to read. |
|
| Method Summary | |
|---|---|
long |
getValue()
Returns the current maximum limit that was set on creation. |
boolean |
isReached()
Returns true if the input limit has been reached. |
void |
reached()
Used to report that the limit has been reached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputLimit(long value)
value - maximum length in bytes| Method Detail |
|---|
public long getValue()
public void reached()
public boolean isReached()
true if the input limit has been reached.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||