public class OperationQueue
extends java.lang.Object
Operation
and is thread-safe.
This class is for model sharer developer only, you rarely need to use this class.Available in ZK PE and ZK EE.
Constructor and Description |
---|
OperationQueue() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(OperationQueueListener listener)
Add a listener to this queue
|
Operation |
element()
Get an operation from queue, doesn't remove it.
|
boolean |
hasElement()
Check is there any operation in queue.
|
Operation |
next()
Get an operation from queue, and then remove it.
|
void |
put(Operation op)
Put an operation to queue
|
void |
remove()
Remove the first operation in queue if exist.
|
void |
removeListener(OperationQueueListener listener)
Remove a listener to this queue.
|
public void addListener(OperationQueueListener listener)
public void removeListener(OperationQueueListener listener)
public void put(Operation op)
op
- the operation.public Operation element()
public boolean hasElement()
public Operation next()
public void remove()
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.