com.caucho.jms
Class FileTopic<E>

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.file.FileTopicImpl<E>
                      extended by com.caucho.jms.FileTopic<E>
All Implemented Interfaces:
HandleAware, java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.concurrent.BlockingQueue<E>, java.util.Queue<E>, Destination, Topic

@Service
@Configurable
public class FileTopic<E>
extends FileTopicImpl<E>

A JMS topic backed by a file-based database. It is configured as:

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

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

     <jms:name>my-name</jms:name>
   </jms:FileTopic>

 </web-app>
 

See Also:
Serialized Form

Constructor Summary
FileTopic()
           
FileTopic(java.lang.String name)
           
 
Method Summary
 
Methods inherited from class com.caucho.jms.file.FileTopicImpl
closeSubscriber, createSubscriber, getUrl, init, send, setPath, toString
 
Methods inherited from class com.caucho.jms.queue.AbstractTopic
drainTo, drainTo, 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
 
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, wait, wait, wait
 
Methods inherited from interface javax.jms.Topic
getTopicName
 
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

FileTopic

public FileTopic()

FileTopic

public FileTopic(java.lang.String name)