|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.transfer.TransferQueue
public class TransferQueue
This class manages transfers in a queue and notifies transfers when they are scheduled to start.
Field Summary | |
---|---|
static int |
RESORT_INTERVAL
|
Constructor Summary | |
---|---|
TransferQueue()
|
|
TransferQueue(int maxSlots)
|
Method Summary | |
---|---|
int |
add(Queueable item)
Adds item to the queue. |
double |
calculatePriority(Queueable item)
|
int |
getFreeSlots()
Returns the number of free slots. |
boolean |
remove(Queueable item)
Removes item from the queue and updates the position
of all tail items. |
void |
resort()
|
void |
setMaxSlots(int maxSlots)
Sets the number of slots to maxSlots . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int RESORT_INTERVAL
Constructor Detail |
---|
public TransferQueue(int maxSlots)
public TransferQueue()
Method Detail |
---|
public int add(Queueable item)
item
to the queue.
public double calculatePriority(Queueable item)
public boolean remove(Queueable item)
item
from the queue and updates the position
of all tail items.
public int getFreeSlots()
public void setMaxSlots(int maxSlots)
maxSlots
.
public void resort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |