public class JdbcQueue<E> extends PollingQueue<E>
| Modifier and Type | Field and Description |
|---|---|
protected JdbcManager |
_jdbcManager |
| Constructor and Description |
|---|
JdbcQueue() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
handleAlarm, setPollPeriod, startPoll, stopPollacknowledge, 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, takegenerateMessageID, generateMessageID, getJMSDestination, getTopicName, getUrl, hasMessage, setSerializationHandlecontains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected JdbcManager _jdbcManager
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>ConfigExceptionpublic 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>MessageExceptionpublic void commit(int session)
throws JMSException
JMSExceptionprotected int createDestination(java.lang.String name,
boolean isTopic)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void purgeExpiredMessages()
protected void pollImpl()
pollImpl in class PollingQueue<E>public java.lang.String toString()
toString in class AbstractDestination<E>