public interface IOperationQueue
IOperation
s in a specific way.IOperationDelegate
s to get
notifications of the execution of each IOperation
. Furthermore
IOperationQueueDelegate
can be registered to get notifications about
the queue itself.Modifier and Type | Method and Description |
---|---|
void |
addDelegate(IOperationDelegate delegate)
add a
IOperationDelegate that will be notified of events
happening with each IOperation s in the queue. |
void |
addDelegate(IOperationQueueDelegate queueDelegate)
add a
IOperationQueueDelegate that will be notified of events
happening with the queue, e.g. |
void |
addOperation(IOperation o)
add the given
IOperation to the queue |
void |
addOperations(java.util.Vector operations)
add a bunch of
IOperation s to the queue |
int |
getSize() |
boolean |
isIdle() |
void |
removeDelegate(IOperationDelegate delegate)
remove a
IOperationDelegate |
void |
removeDelegate(IOperationQueueDelegate queueDelegate)
remove a
IOperationQueueDelegate |
void |
reset()
reset the queue as if it were new, i.e.
|
void |
resume()
resume the execution of the operations in the queue; the implementation
should handle calling this method gracefully when already in running
|
void |
suspend()
halt the execution of the operations in the queue; the implementation
should handle calling this method gracefully when already in suspended
mode
|
void suspend()
void resume()
void reset()
boolean isIdle()
true
if there are no operations in the queue and no
operations are currently executed; false
otherwisevoid addOperation(IOperation o)
IOperation
to the queueo
- the IOperation
to be addedvoid addOperations(java.util.Vector operations)
IOperation
s to the queueoperations
- the IOperation
s to be addedint getSize()
void addDelegate(IOperationDelegate delegate)
IOperationDelegate
that will be notified of events
happening with each IOperation
s in the queue. If the same
IOperationDelegate
is already added, it will not be added again.delegate
- the IOperationDelegate
to be addedvoid removeDelegate(IOperationDelegate delegate)
IOperationDelegate
delegate
- the IOperationDelegate
to be removedvoid addDelegate(IOperationQueueDelegate queueDelegate)
IOperationQueueDelegate
that will be notified of events
happening with the queue, e.g. when the queue is finished. If the same
IOperationQueueDelegate
is already added, it will not be added
again.delegate
- the IOperationQueueDelegate
to be addedvoid removeDelegate(IOperationQueueDelegate queueDelegate)
IOperationQueueDelegate
queueDelegate
- the IOperationQueueDelegate
to be removed