|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Queueable
Defines the requirements for classes that can be queued.
TransferQueue| Method Summary | |
|---|---|
long |
getEnqueueTime()
Returns the time when the queueable was enqueued in milli seconds. |
java.lang.String |
getFilename()
|
long |
getFilesize()
|
Peer |
getPeer()
|
int |
getPriority()
Basically a boost factor. |
int |
getQueuePosition()
Returns the position in the queue. |
void |
setQueuePosition(int position)
Invoked by the queue to update the position. |
boolean |
startTransfer()
Invoked by queue once the item moves to the top of the queue and is ready to run. |
| Method Detail |
|---|
long getEnqueueTime()
java.lang.String getFilename()
Transfer.getFilename()long getFilesize()
Transfer.getFilesize()Peer getPeer()
Transfer.getPeer()int getPriority()
int getQueuePosition()
void setQueuePosition(int position)
position - if 0, the item has been dequeued from the
queue and startQueued() has been called.boolean startTransfer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||