1 43 package org.exolab.jms.messagemgr; 44 45 import javax.jms.MessageConsumer ; 46 import javax.jms.QueueBrowser ; 47 import javax.jms.JMSException ; 48 49 import org.exolab.jms.client.JmsDestination; 50 import org.exolab.jms.selector.Selector; 51 import org.exolab.jms.server.ServerConnection; 52 53 54 62 public interface ConsumerEndpoint 63 extends DestinationCacheEventListener, Runnable { 64 65 70 long getId(); 71 72 81 boolean isPersistent(); 82 83 91 String getPersistentId(); 92 93 99 long getConnectionId(); 100 101 106 JmsDestination getDestination(); 107 108 114 Selector getSelector(); 115 116 122 boolean getNoLocal(); 123 124 130 void setStopped(boolean stop); 131 132 144 MessageHandle receive(long wait) throws JMSException ; 145 146 153 void setMessageListener(ConsumerEndpointListener listener); 154 155 160 int getMessageCount(); 161 162 165 void close(); 166 167 } 168 | Popular Tags |