Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ix.util
Class MessageQueue

    java.lang.Object
      ix.util.MessageQueue

    public class MessageQueue

extends java.lang.Object

A queue for messages between threads.

Field Summary
`(package private) java.util.List` | `contents`
`(package private) boolean` | `returnInterrupts`

Constructor Summary
`MessageQueue()`
`MessageQueue(boolean returnInterrupts)`

Method Summary
`void` | `callOnContents(Proc p)`
`void` | `clear()`
`boolean` | `hasMessage()`
`java.lang.Object` | `nextMessage()`
`void` | `push(java.lang.Object message)`
`void` | `send(java.lang.Object message)`
`void` | `sendIfNew(java.lang.Object message)`
`boolean` | `waitForMessage()`
`boolean` | `waitForMessage(long timeout)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### contents

    java.util.List contents

### returnInterrupts

    boolean returnInterrupts

Constructor Detail

### MessageQueue

    public MessageQueue()

### MessageQueue

    public MessageQueue(boolean returnInterrupts)

Method Detail

### 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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD