Package alluxio.util.executor
Class ControllableQueue.DelayNode<T>
- java.lang.Object
-
- alluxio.util.executor.ControllableQueue.DelayNode<T>
-
- Type Parameters:
T
- the type of the value
- Enclosing class:
- ControllableQueue<T>
public static class ControllableQueue.DelayNode<T> extends java.lang.Object
A delay node in delta queue which records the value and the total delay (which is the original delay plus the past time).
-
-
Constructor Summary
Constructors Constructor Description DelayNode(T value, long millis)
Constructs a newControllableQueue.DelayNode
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDelay()
T
getValue()
void
setDelay(long delay)
Sets the delay.
-
-
-
Constructor Detail
-
DelayNode
public DelayNode(T value, long millis)
Constructs a newControllableQueue.DelayNode
.- Parameters:
value
- a valuemillis
- delay time in milliseconds
-
-
Method Detail
-
getValue
public T getValue()
- Returns:
- the value
-
getDelay
public long getDelay()
- Returns:
- the delay in milliseconds
-
setDelay
public void setDelay(long delay)
Sets the delay.- Parameters:
delay
- the delay in milliseconds
-
-