1 45 package org.exolab.jms.messagemgr; 46 47 import java.sql.Connection ; 48 import javax.jms.MessageConsumer ; 49 import javax.jms.JMSException ; 50 51 import org.exolab.jms.client.JmsDestination; 52 import org.exolab.jms.message.MessageImpl; 53 import org.exolab.jms.persistence.PersistenceException; 54 55 56 64 public interface MessageHandle { 65 66 71 String getMessageId(); 72 73 80 void setDelivered(boolean delivered); 81 82 87 boolean getDelivered(); 88 89 94 int getPriority(); 95 96 102 long getAcceptedTime(); 103 104 109 long getExpiryTime(); 110 111 117 boolean hasExpired(); 118 119 124 long getSequenceNumber(); 125 126 131 JmsDestination getDestination(); 132 133 139 long getConsumerId(); 140 141 147 long getConnectionId(); 148 149 156 String getConsumerPersistentId(); 157 158 164 boolean isPersistent(); 165 166 173 MessageImpl getMessage() throws JMSException ; 174 175 181 void add(Connection connection) throws PersistenceException; 182 183 189 void update(Connection connection) throws PersistenceException; 190 191 197 void destroy() throws JMSException ; 198 199 207 void destroy(Connection connection) throws JMSException , PersistenceException; 208 209 214 MessageRef getMessageRef(); 215 216 } 217 218 | Popular Tags |