public interface RequestSelectionTreeNode
Modifier and Type | Method and Description |
---|---|
void |
clearWakeupTime(ClientContext context)
When a request becomes fetchable, set all the wakeup times above it to 0.
|
RequestSelectionTreeNode |
getParentGrabArray()
Return the parent RequestSelectionTreeNode or null if it's not in the tree or is the root (e.g.
|
long |
getWakeupTime(ClientContext context,
long now)
Unless this is a RandomGrabArrayItem, this will return the wakeup time for the subtree
rooted at this node.
|
boolean |
reduceWakeupTime(long wakeupTime,
ClientContext context)
If the current cooldown time is larger than the parameter, reduce it and recurse up the
tree.
|
RequestSelectionTreeNode getParentGrabArray()
long getWakeupTime(ClientContext context, long now)
boolean reduceWakeupTime(long wakeupTime, ClientContext context)
void clearWakeupTime(ClientContext context)