| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private MessageQueueBackend. | |
| private MessageQueueBackend. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MessageQueue | |
| public MessageQueue |
| leftRightQueue | back to summary |
|---|---|
| private MessageQueueBackend. | |
| rightLeftQueue | back to summary |
|---|---|
| private MessageQueueBackend. | |
| MessageQueueBackend | back to summary |
|---|---|
| public MessageQueueBackend() | |
| getFirstQueue | back to summary |
|---|---|
| public MessageQueue getFirstQueue() Get one of the two symmetric sides of this message queue. | |
| getSecondQueue | back to summary |
|---|---|
| public MessageQueue getSecondQueue() Get second of the two symmetric sides of this message queue. | |
| Modifier and Type | Field and Description |
|---|---|
| private LinkedList | |
| private LinkedList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | readMessage()
Implements sun. This blocks until a message is available. |
| public Object | readMessageWithTimeout(long millis)
Implements sun. This blocks for up to |
| public void | writeMessage(Object obj)
Implements sun. Write a message to the queue |
| readList | back to summary |
|---|---|
| private LinkedList<Object> readList | |
| writeList | back to summary |
|---|---|
| private LinkedList<Object> writeList | |
| MessageQueueImpl | back to summary |
|---|---|
| public MessageQueueImpl(LinkedList<Object> listToReadFrom, LinkedList<Object> listToWriteTo) | |
| readMessage | back to summary |
|---|---|
| public Object readMessage() Implements sun. Doc from sun. This blocks until a message is available. Even if the thread is interrupted while it is waiting, this will not return until a message is written by the entity on the other side of the queue. | |
| readMessageWithTimeout | back to summary |
|---|---|
| public Object readMessageWithTimeout(long millis) Implements sun. Doc from sun. This blocks for up to | |
| writeMessage | back to summary |
|---|---|
| public void writeMessage(Object obj) Implements sun. Doc from sun. Write a message to the queue | |