|
||||||||||
| 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
com.caucho.jms.queue.AbstractDestination
com.caucho.jms.queue.AbstractQueue
com.caucho.jms.queue.PollingQueue
com.caucho.jms.jdbc.JdbcQueue
public class JdbcQueue
A jdbc queue.
| Field Summary | |
|---|---|
protected JdbcManager |
_jdbcManager
|
| Fields inherited from class com.caucho.jms.queue.AbstractDestination |
|---|
_messageFactory |
| 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. |
MessageImpl |
receive(boolean isAutoAck)
Receives a message from the queue. |
void |
send(JmsSession session,
MessageImpl message,
int priority,
long expireTime)
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 |
|---|
addListenerException, addMessageAvailableListener, close, getBrowserList, getConsumerCount, getListenerFailCountTotal, getListenerFailLastTime, getQueueSize, notifyMessageAvailable, postConstruct, removeMessageAvailableListener |
| Methods inherited from class com.caucho.jms.queue.AbstractDestination |
|---|
acknowledge, drainTo, drainTo, generateMessageID, generateMessageID, getJMSDestination, getReadConsumer, getTopicName, getUrl, getWriteSession, hasMessage, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, rollback, setSerializationHandle, size, take |
| 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 AbstractDestinationpublic java.lang.String getName()
getName in class AbstractDestinationpublic java.lang.String getQueueName()
getQueueName in class AbstractDestinationpublic void setQueueName(java.lang.String name)
setQueueName in class AbstractQueuepublic 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 AbstractQueueConfigException
public void send(JmsSession session,
MessageImpl message,
int priority,
long expireTime)
throws JMSException
send in class AbstractDestinationJMSException
public MessageImpl receive(boolean isAutoAck)
throws JMSException
receive in class AbstractDestinationisAutoAck - if true, automatically acknowledge the message
JMSException
public void commit(int session)
throws JMSException
JMSException
protected int createDestination(java.lang.String name,
boolean isTopic)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void purgeExpiredMessages()
protected void pollImpl()
pollImpl in class PollingQueuepublic java.lang.String toString()
toString in class AbstractDestination
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||