com.caucho.jms
Class FileQueue<X extends java.io.Serializable>

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.AbstractQueue<E>
                  extended by com.caucho.jms.queue.AbstractMemoryQueue<E,FileQueueEntry<E>>
                      extended by com.caucho.jms.file.FileQueueImpl<X>
                          extended by com.caucho.jms.FileQueue<X>
All Implemented Interfaces:
HandleAware, MessageQueue<X>, java.io.Serializable, java.lang.Iterable<X>, java.util.Collection<X>, java.util.concurrent.BlockingQueue<X>, java.util.Queue<X>, Destination, Topic

@Service
@Configurable
public class FileQueue<X extends java.io.Serializable>
extends FileQueueImpl<X>

A JMS queue 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:FileQueue>
     <resin:JndiName>jms/my-name</resin:JndiName>

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

 </web-app>
 

See Also:
Serialized Form

Constructor Summary
FileQueue()
           
FileQueue(java.lang.String name)
           
 
Method Summary
 
Methods inherited from class com.caucho.jms.file.FileQueueImpl
acknowledge, addEntry, getFileStoreMessageCount, getPath, getUrl, init, readPayload, setPath, setTablePrefix, writeEntry
 
Methods inherited from class com.caucho.jms.queue.AbstractMemoryQueue
acknowledge, addMessageCallback, addQueueEntry, dispatchMessage, getBrowserList, getConsumerCount, getMessageIds, getQueueSize, getQueueSizeMax, getReceiverCount, hasMessage, listen, readEntry, readEntry, receive, receiveEntry, receiveEntry, removeEntry, removeMessageCallback, rollback, send, setQueueSizeMax
 
Methods inherited from class com.caucho.jms.queue.AbstractQueue
addListenerException, close, drainTo, drainTo, getListenerFailCountTotal, getListenerFailLastTime, iterator, offer, offer, peek, poll, poll, postConstruct, put, receive, receive, remainingCapacity, setQueueName, size, take
 
Methods inherited from class com.caucho.jms.queue.AbstractDestination
generateMessageID, generateMessageID, getJMSDestination, getName, getQueueName, getTopicName, 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 javax.jms.Queue
getQueueName, 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

FileQueue

public FileQueue()

FileQueue

public FileQueue(java.lang.String name)