public class MessageQueue
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MessageQueue.QueueEntry |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected java.util.LinkedList<MessageQueue.QueueEntry> |
list |
protected long |
maxSize |
protected boolean |
running |
protected long |
size |
| Constructor and Description |
|---|
MessageQueue(long maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
StompJmsMessage |
dequeue(long timeout) |
StompJmsMessage |
dequeueNoWait() |
void |
enqueue(StompJmsMessage message) |
boolean |
isClosed() |
boolean |
isEmpty() |
boolean |
isFull() |
boolean |
isRunning() |
java.util.List<StompJmsMessage> |
removeAll() |
protected void |
removed(MessageQueue.QueueEntry entry) |
int |
size() |
void |
start() |
void |
stop() |
java.lang.String |
toString() |
protected final long maxSize
protected final java.util.LinkedList<MessageQueue.QueueEntry> list
protected boolean closed
protected boolean running
protected long size
public void enqueue(StompJmsMessage message)
public boolean isEmpty()
public StompJmsMessage dequeue(long timeout) throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic StompJmsMessage dequeueNoWait()
protected void removed(MessageQueue.QueueEntry entry)
public void start()
public void stop()
public boolean isRunning()
public void close()
public boolean isClosed()
public int size()
public void clear()
public java.util.List<StompJmsMessage> removeAll()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isFull()
Copyright © 2010-2013 FuseSource, Corp.. All Rights Reserved.