DiskManagerReadRequestpublic interface DiskManagerReadRequest implements org.gudy.azureus2.plugins.peers.PeerReadRequest, DiskManagerRequestThis class represents a Bittorrent Request.
and a time stamp to know when it was created.
Request may expire after some time, which is used to determine who is snubbed. |
Methods Summary |
---|
public boolean | equals(java.lang.Object o)We override the equals method
2 requests are equals if
all their bt fields (piece number, offset, length) are equal
| public boolean | getFlush()
| public int | getLength()
| public int | getOffset()
| public int | getPieceNumber()
| public long | getTimeCreated(long now)
| public boolean | getUseCache()
| public int | hashCode()
| public void | reSetTime(long now)Allow some more time to the request.
Typically used on peers that have just sent some data, we reset all
other requests to give them extra time.
| public void | setFlush(boolean flush)If flush is set then data held in memory will be flushed to disk during the read operation
| public void | setUseCache(boolean cache)
|
|