class DontHaveMemo extends Object
The peer's HAVE bitfield is already cleared on dont_have; this additionally suppresses requests once the peer re-sets the bit, avoiding a request/dont_have ping-pong with peers that flap or purge pieces transiently.
| Constructor and Description |
|---|
DontHaveMemo() |
DontHaveMemo(long memoTime) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void | add(int piece)Remember that the peer no longer has the piece. |
(package private) boolean | contains(int piece)Whether the peer recently said it does not have the piece. |
DontHaveMemo()
DontHaveMemo(long memoTime)
memoTime - how long a dont_have suppresses requests, millisecondsvoid add(int piece)
piece - the piece indexboolean contains(int piece)
piece - the piece index