1 22 package org.jboss.mq.pm; 23 24 import javax.jms.JMSException ; 25 26 import org.jboss.mq.SpyDestination; 27 import org.jboss.mq.server.JMSDestination; 28 import org.jboss.mq.server.MessageCache; 29 import org.jboss.mq.server.MessageReference; 30 31 39 public interface PersistenceManager 40 { 41 43 45 50 MessageCache getMessageCacheInstance(); 51 52 58 Tx createPersistentTx() throws javax.jms.JMSException ; 59 60 66 void commitPersistentTx(Tx txId) throws javax.jms.JMSException ; 67 68 74 void rollbackPersistentTx(Tx txId) throws javax.jms.JMSException ; 75 76 77 83 TxManager getTxManager(); 84 85 93 void add(MessageReference message, Tx txId) throws JMSException ; 94 95 102 void restoreQueue(JMSDestination jmsDest, SpyDestination dest) throws JMSException ; 103 104 112 void update(MessageReference message, Tx txId) throws JMSException ; 113 114 122 void remove(MessageReference message, Tx txId) throws JMSException ; 123 124 131 void closeQueue(JMSDestination jmsDest, SpyDestination dest) throws JMSException ; 132 } | Popular Tags |