ix.util
Class MessageQueue
java.lang.Object
ix.util.MessageQueue
public class MessageQueue
- extends java.lang.Object
A queue for messages between threads.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contents
java.util.List contents
returnInterrupts
boolean returnInterrupts
MessageQueue
public MessageQueue()
MessageQueue
public MessageQueue(boolean returnInterrupts)
send
public void send(java.lang.Object message)
sendIfNew
public void sendIfNew(java.lang.Object message)
push
public void push(java.lang.Object message)
nextMessage
public java.lang.Object nextMessage()
waitForMessage
public boolean waitForMessage()
waitForMessage
public boolean waitForMessage(long timeout)
hasMessage
public boolean hasMessage()
callOnContents
public void callOnContents(Proc p)
clear
public void clear()