be.lassi.lanbox
Class CommandQueue
java.lang.Object
be.lassi.lanbox.CommandQueue
- Direct Known Subclasses:
- CommandLogQueue
public class CommandQueue
- extends java.lang.Object
Queue for lanbox commands.
Method Summary |
Command |
get()
Gets the first command from the queue, and removes that command
from the queue. |
void |
put(Command command)
Puts a lanbox command on the queue. |
int |
size()
Gets the number of commands on the queue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandQueue
public CommandQueue()
get
public Command get()
- Gets the first command from the queue, and removes that command
from the queue.
- Returns:
- the first command on the queue or null (if queue is empty)
put
public void put(Command command)
- Puts a lanbox command on the queue.
- Parameters:
command
- the command to be added to the queue
size
public int size()
- Gets the number of commands on the queue.
- Returns:
- the number of commands on the queue