FileDocCategorySizeDatePackage
DiskManagerReadRequest.javaAPI DocAzureus 3.0.3.42143Tue Apr 17 09:57:28 BST 2007org.gudy.azureus2.core3.disk

DiskManagerReadRequest

public interface DiskManagerReadRequest implements org.gudy.azureus2.plugins.peers.PeerReadRequest, DiskManagerRequest
This 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.
author
Olivier

Fields Summary
Constructors Summary
Methods Summary
public booleanequals(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 booleangetFlush()

public intgetLength()

public intgetOffset()

public intgetPieceNumber()

public longgetTimeCreated(long now)

public booleangetUseCache()

public inthashCode()

public voidreSetTime(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 voidsetFlush(boolean flush)
If flush is set then data held in memory will be flushed to disk during the read operation

param
flush

public voidsetUseCache(boolean cache)