public class FileQueueImpl<E extends java.io.Serializable> extends AbstractMemoryQueue<E,FileQueueEntry<E>> implements Topic
file:name=my-name;path=file:/var/resin/webapps/test/WEB-INF/jmsIt is configured as:
<web-app xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.resin"> <resin:FileQueue> <resin:JndiName>jms/my-name</resin:JndiName> <resin:name>my-name</resin:name> <resin:path>WEB-INF/jms</resin:path> </resin:FileQueue> </web-app>
Constructor and Description |
---|
FileQueueImpl() |
FileQueueImpl(byte[] queueHash) |
FileQueueImpl(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
acknowledge(FileQueueEntry<E> entry) |
protected void |
addEntry(long id,
java.lang.String msgId,
long leaseTimeout,
int priority,
long expireTime,
E payload)
Callback from startup
|
int |
getFileStoreMessageCount()
Statistics
|
Path |
getPath() |
java.lang.String |
getUrl()
Returns the JMS configuration url.
|
void |
init()
Initialize the queue
|
protected void |
readPayload(FileQueueEntry<E> entry) |
void |
setPath(Path path)
Deprecated.
|
void |
setTablePrefix(java.lang.String prefix)
Deprecated.
|
FileQueueEntry<E> |
writeEntry(java.lang.String msgId,
E payload,
int priority,
long expireTime)
Adds the message to the persistent store.
|
acknowledge, addMessageCallback, addQueueEntry, dispatchMessage, getBrowserList, getConsumerCount, getMessageIds, getQueueSize, getQueueSizeMax, getReceiverCount, hasMessage, listen, readEntry, readEntry, receive, receiveEntry, receiveEntry, removeEntry, removeMessageCallback, rollback, send, setQueueSizeMax
addListenerException, close, drainTo, drainTo, getListenerFailCountTotal, getListenerFailLastTime, iterator, offer, offer, peek, poll, poll, postConstruct, put, receive, receive, remainingCapacity, setQueueName, size, take
generateMessageID, generateMessageID, getJMSDestination, getName, getQueueName, getTopicName, setName, setSerializationHandle, toString
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTopicName, toString
getQueueName, toString
public FileQueueImpl()
public FileQueueImpl(byte[] queueHash)
public FileQueueImpl(java.lang.String name)
@Deprecated public void setPath(Path path)
public Path getPath()
@Deprecated public void setTablePrefix(java.lang.String prefix)
public java.lang.String getUrl()
getUrl
in class AbstractDestination<E extends java.io.Serializable>
public void init()
init
in class AbstractQueue<E extends java.io.Serializable>
public FileQueueEntry<E> writeEntry(java.lang.String msgId, E payload, int priority, long expireTime)
writeEntry
in class AbstractMemoryQueue<E extends java.io.Serializable,FileQueueEntry<E extends java.io.Serializable>>
msgId
- the queue's unique identifier for the messagepayload
- the message payload to storepriority
- the message priorityexpireTime
- the expires timeprotected void readPayload(FileQueueEntry<E> entry)
readPayload
in class AbstractMemoryQueue<E extends java.io.Serializable,FileQueueEntry<E extends java.io.Serializable>>
protected void acknowledge(FileQueueEntry<E> entry)
acknowledge
in class AbstractMemoryQueue<E extends java.io.Serializable,FileQueueEntry<E extends java.io.Serializable>>
protected void addEntry(long id, java.lang.String msgId, long leaseTimeout, int priority, long expireTime, E payload)
public int getFileStoreMessageCount()