1 package org.exolab.jms.messagemgr; 2 3 import java.sql.Connection ; 4 import javax.jms.JMSException ; 5 6 import org.exolab.jms.message.MessageImpl; 7 8 9 16 public interface MessageCache { 17 18 24 void addMessage(MessageRef reference, MessageImpl message); 25 26 31 void addMessageRef(MessageRef reference); 32 33 40 MessageRef getMessageRef(String messageId); 41 42 49 MessageImpl getMessage(MessageRef reference) 50 throws JMSException ; 51 52 57 void destroy(MessageRef reference) throws JMSException ; 58 59 65 void destroy(MessageRef reference, Connection connection) 66 throws JMSException ; 67 68 } 69 | Popular Tags |