|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.mit.csail.aeolus.api.AeolusShared
edu.mit.csail.aeolus.api.AeolusQueue<T>
T - public final class AeolusQueue<T extends java.io.Serializable>
This behaves like the AeolusBox class but is a queue of objects instead.
| Field Summary |
|---|
| Fields inherited from class edu.mit.csail.aeolus.api.AeolusShared |
|---|
sharedLastEid |
| Constructor Summary | |
|---|---|
AeolusQueue()
Construct an empty AeolusQueue with the current thread's labels. |
|
AeolusQueue(AeolusLabel sLabel,
AeolusLabel iLabel)
Construct an empty AeolusQueue with the specified labels. |
|
| Method Summary | |
|---|---|
T |
dequeue()
This method returns the object at the head of the queue. |
T |
dequeueNoWait()
This call will wait for the lock on the queue before trying to remove a potentially empty head (it will not block if the queue is empty, though). |
void |
enqueue(T obj)
Adds a copy of obj to the shared queue. |
| Methods inherited from class edu.mit.csail.aeolus.api.AeolusShared |
|---|
getIntegrityLabel, getSecrecyLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AeolusQueue()
public AeolusQueue(AeolusLabel sLabel,
AeolusLabel iLabel)
throws InfoFlowControlException
InfoFlowControlException - if thread's labels are more constraining than those provided.| Method Detail |
|---|
public T dequeue()
throws InfoFlowControlException
InfoFlowControlException - if thread's labels are not equal to the queue's labels.
public T dequeueNoWait()
throws InfoFlowControlException
InfoFlowControlException - if thread's labels are not equal to the queue's labels.
public void enqueue(T obj)
throws InfoFlowControlException,
java.lang.NullPointerException
java.lang.NullPointerException - - if obj is null
InfoFlowControlException - if queue's labels are more constrained that the thread's.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||