1 45 46 package org.exolab.jms.messagemgr; 47 48 import javax.jms.JMSException ; 49 50 import org.exolab.jms.client.JmsDestination; 51 import org.exolab.jms.gc.GarbageCollectable; 52 import org.exolab.jms.message.MessageImpl; 53 54 55 68 public interface DestinationCache extends MessageManagerEventListener, 69 GarbageCollectable { 70 71 76 JmsDestination getDestination(); 77 78 84 boolean addConsumer(ConsumerEndpoint consumer); 85 86 91 void removeConsumer(ConsumerEndpoint consumer); 92 93 99 void returnMessageHandle(MessageHandle handle); 100 101 106 int getMessageCount(); 107 108 114 boolean canDestroy(); 115 116 119 void destroy(); 120 121 } 122 | Popular Tags |