com.caucho.jms.memory
Class MemorySubscriberQueue<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.AbstractQueue<E>
                  extended by com.caucho.jms.queue.AbstractMemoryQueue<E,MemoryQueueEntry<E>>
                      extended by com.caucho.jms.memory.MemoryQueueImpl<E>
                          extended by com.caucho.jms.memory.MemorySubscriberQueue<E>
All Implemented Interfaces:
HandleAware, MessageQueue<E>, MessageTopicSubscriber<E>, java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.concurrent.BlockingQueue<E>, java.util.Queue<E>, Destination

public class MemorySubscriberQueue<E>
extends MemoryQueueImpl<E>
implements MessageTopicSubscriber<E>

Implements a memory queue.

See Also:
Serialized Form

Constructor Summary
MemorySubscriberQueue(java.lang.Object publisher, boolean noLocal)
           
 
Method Summary
 void send(java.lang.String msgId, E msg, int priority, long timeout, java.lang.String publisher)
          Sends a message to the queue
 
Methods inherited from class com.caucho.jms.memory.MemoryQueueImpl
acknowledge, getUrl, writeEntry
 
Methods inherited from class com.caucho.jms.queue.AbstractMemoryQueue
acknowledge, addMessageCallback, addQueueEntry, dispatchMessage, getBrowserList, getConsumerCount, getMessageIds, getQueueSize, getQueueSizeMax, getReceiverCount, hasMessage, listen, readEntry, readEntry, readPayload, receive, receiveEntry, receiveEntry, removeEntry, removeMessageCallback, rollback, setQueueSizeMax
 
Methods inherited from class com.caucho.jms.queue.AbstractQueue
addListenerException, close, drainTo, drainTo, getListenerFailCountTotal, getListenerFailLastTime, init, 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, wait, wait, wait
 
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

MemorySubscriberQueue

public MemorySubscriberQueue(java.lang.Object publisher,
                             boolean noLocal)
Method Detail

send

public void send(java.lang.String msgId,
                 E msg,
                 int priority,
                 long timeout,
                 java.lang.String publisher)
Description copied from class: AbstractMemoryQueue
Sends a message to the queue

Specified by:
send in interface MessageQueue<E>
Specified by:
send in interface MessageTopicSubscriber<E>
Overrides:
send in class AbstractMemoryQueue<E,MemoryQueueEntry<E>>