|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractQueue<E>
com.caucho.jms.queue.AbstractDestination<E>
com.caucho.jms.queue.AbstractQueue<E>
com.caucho.jms.queue.PollingQueue<E>
com.caucho.jms.jdbc.JdbcQueue<E>
public class JdbcQueue<E>
A jdbc queue.
Field Summary | |
---|---|
protected JdbcManager |
_jdbcManager
|
Constructor Summary | |
---|---|
JdbcQueue()
|
Method Summary | |
---|---|
void |
commit(int session)
Removes the first message matching the selector. |
protected int |
createDestination(java.lang.String name,
boolean isTopic)
Creates a queue. |
int |
getId()
Returns the JDBC id for the queue. |
JdbcManager |
getJdbcManager()
Gets the JDBC manager. |
java.lang.String |
getName()
Gets the name. |
java.lang.String |
getQueueName()
Returns the queue's name. |
void |
init()
Initializes the JdbcQueue |
protected void |
pollImpl()
|
protected void |
purgeExpiredMessages()
Purges expired messages. |
void |
send(java.lang.String msgId,
E payload,
int priority,
long expireTime,
java.lang.String publisherId)
Sends the message to the queue. |
void |
setDataSource(javax.sql.DataSource dataSource)
Sets the data source. |
void |
setJdbcManager(JdbcManager jdbcManager)
Sets the jdbc manager |
void |
setName(java.lang.String name)
Sets the name. |
void |
setQueueName(java.lang.String name)
Sets the queue's name. |
void |
setTablespace(java.lang.String tablespace)
Sets the tablespace for Oracle. |
java.lang.String |
toString()
Returns a printable view of the queue. |
Methods inherited from class com.caucho.jms.queue.PollingQueue |
---|
handleAlarm, setPollPeriod, startPoll, stopPoll |
Methods inherited from class com.caucho.jms.queue.AbstractQueue |
---|
acknowledge, addListenerException, addMessageCallback, close, drainTo, drainTo, getBrowserList, getConsumerCount, getListenerFailCountTotal, getListenerFailLastTime, getQueueSize, getReceiverCount, iterator, offer, offer, peek, poll, poll, postConstruct, put, receive, receive, receive, receiveEntry, receiveEntry, remainingCapacity, removeMessageCallback, rollback, size, take |
Methods inherited from class com.caucho.jms.queue.AbstractDestination |
---|
generateMessageID, generateMessageID, getJMSDestination, getTopicName, getUrl, hasMessage, 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 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 |
Field Detail |
---|
protected JdbcManager _jdbcManager
Constructor Detail |
---|
public JdbcQueue()
Method Detail |
---|
public void setName(java.lang.String name)
setName
in class AbstractDestination<E>
public java.lang.String getName()
getName
in class AbstractDestination<E>
public java.lang.String getQueueName()
getQueueName
in class AbstractDestination<E>
public void setQueueName(java.lang.String name)
setQueueName
in class AbstractQueue<E>
public int getId()
public void setJdbcManager(JdbcManager jdbcManager)
public JdbcManager getJdbcManager()
public void setDataSource(javax.sql.DataSource dataSource)
public void setTablespace(java.lang.String tablespace)
public void init() throws ConfigException
init
in class AbstractQueue<E>
ConfigException
public void send(java.lang.String msgId, E payload, int priority, long expireTime, java.lang.String publisherId) throws MessageException
send
in interface MessageQueue<E>
send
in class AbstractDestination<E>
MessageException
public void commit(int session) throws JMSException
JMSException
protected int createDestination(java.lang.String name, boolean isTopic) throws java.sql.SQLException
java.sql.SQLException
protected void purgeExpiredMessages()
protected void pollImpl()
pollImpl
in class PollingQueue<E>
public java.lang.String toString()
toString
in class AbstractDestination<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |