org.stringtree.jms
Class InMemoryQueue

java.lang.Object
  extended by org.stringtree.jms.InMemoryDestination
      extended by org.stringtree.jms.InMemoryQueue
All Implemented Interfaces:
javax.jms.Destination, javax.jms.Queue, javax.jms.TemporaryQueue, javax.jms.Topic

public class InMemoryQueue
extends InMemoryDestination


Field Summary
protected  java.util.List messages
           
 
Fields inherited from class org.stringtree.jms.InMemoryDestination
name
 
Constructor Summary
InMemoryQueue()
           
InMemoryQueue(java.lang.String name)
           
 
Method Summary
 javax.jms.Message peek()
           
protected  void publish(javax.jms.Message message)
           
 javax.jms.Message recieve()
           
 void reset()
           
 int size()
           
 
Methods inherited from class org.stringtree.jms.InMemoryDestination
add, delete, getQueueName, getTopicName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.Topic
toString
 
Methods inherited from interface javax.jms.Queue
toString
 

Field Detail

messages

protected java.util.List messages
Constructor Detail

InMemoryQueue

public InMemoryQueue(java.lang.String name)

InMemoryQueue

public InMemoryQueue()
Method Detail

publish

protected void publish(javax.jms.Message message)
Specified by:
publish in class InMemoryDestination

size

public int size()
Specified by:
size in class InMemoryDestination

peek

public javax.jms.Message peek()
Specified by:
peek in class InMemoryDestination

recieve

public javax.jms.Message recieve()

reset

public void reset()
Specified by:
reset in class InMemoryDestination