|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Piece
Method Summary | |
---|---|
int |
getAllocatableRequestCount()
number of requests that are available to be made |
int |
getIndex()
|
int |
getLength()
|
Peer |
getReservedFor()
Reserve this peice for a given peer - no other peer will be asked for the piece |
boolean |
isDone()
|
boolean |
isDownloading()
|
boolean |
isFullyAllocatable()
indicates if this piece is free and available to be allocated for download not done, needed and not downloading |
boolean |
isNeeded()
|
void |
setReservedFor(Peer peer)
Set the peer that will be responsible for downloading the piece |
Method Detail |
---|
int getIndex()
int getLength()
boolean isDone()
boolean isNeeded()
boolean isDownloading()
boolean isFullyAllocatable()
int getAllocatableRequestCount()
Peer getReservedFor()
void setReservedFor(Peer peer)
peer
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |