com.caucho.jms
Class MemoryTopic

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by com.caucho.jms.queue.AbstractDestination<E>
              extended by com.caucho.jms.queue.AbstractTopic<E>
                  extended by com.caucho.jms.memory.MemoryTopicImpl
                      extended by com.caucho.jms.MemoryTopic
All Implemented Interfaces:
HandleAware, java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.concurrent.BlockingQueue, java.util.Queue, Destination, Topic

@Service
@Configurable
public class MemoryTopic
extends MemoryTopicImpl

A JMS topic stored in memory. It is configured as:

 <web-app xmlns="http://caucho.com/ns/resin"
             xmlns:resin="urn:java:com.caucho.resin">

   <resin:MemoryTopic>
     <resin:JndiName>jms/my-name</resin:JndiName>

     <resin:Name>my-name</resin:Name>
   </resin:MemoryTopic>

 </web-app>
 

See Also:
Serialized Form

Constructor Summary
MemoryTopic()
          Standard Injection constructor
MemoryTopic(java.lang.String name)
          Programmatic constructor, automatically initializes the topic.
 
Method Summary
 
Methods inherited from class com.caucho.jms.memory.MemoryTopicImpl
closeSubscriber, createSubscriber, getUrl, send
 
Methods inherited from class com.caucho.jms.queue.AbstractTopic
drainTo, drainTo, init, iterator, offer, offer, peek, poll, poll, postConstruct, put, receive, remainingCapacity, setTopicName, size, take
 
Methods inherited from class com.caucho.jms.queue.AbstractDestination
acknowledge, close, generateMessageID, generateMessageID, getJMSDestination, getName, getQueueName, getTopicName, hasMessage, rollback, setName, setSerializationHandle, toString
 
Methods inherited from class java.util.AbstractQueue
add, addAll, clear, element, remove
 
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 
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
getTopicName, toString
 
Methods inherited from interface java.util.concurrent.BlockingQueue
add, contains, remove
 
Methods inherited from interface java.util.Queue
element, remove
 
Methods inherited from interface java.util.Collection
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray
 

Constructor Detail

MemoryTopic

public MemoryTopic()
Standard Injection constructor


MemoryTopic

public MemoryTopic(java.lang.String name)
Programmatic constructor, automatically initializes the topic.