public class CommandQueueImpl extends java.lang.Object implements CommandQueue
| Constructor and Description |
|---|
CommandQueueImpl(Hive hive,
java.lang.String id,
int loopDelay) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(SingleCommand command,
int period)
Add a command to the queue
|
void |
removeCommand(SingleCommand command)
Remove a command from the queue
|
protected void |
runOnce() |
void |
start(Hive hive,
FolderCommon baseFolder) |
void |
stop() |
public CommandQueueImpl(Hive hive, java.lang.String id, int loopDelay)
public void addCommand(SingleCommand command, int period)
CommandQueueaddCommand in interface CommandQueuecommand - the command to addperiod - the min delay between executionpublic void removeCommand(SingleCommand command)
CommandQueueremoveCommand in interface CommandQueuepublic void start(Hive hive, FolderCommon baseFolder)
start in interface CommandQueuepublic void stop()
stop in interface CommandQueueprotected void runOnce()
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0