1 18 package org.apache.activemq.broker.region; 19 20 import org.apache.activemq.Service; 21 import org.apache.activemq.broker.ConnectionContext; 22 import org.apache.activemq.broker.ConsumerBrokerExchange; 23 import org.apache.activemq.broker.ProducerBrokerExchange; 24 import org.apache.activemq.command.ActiveMQDestination; 25 import org.apache.activemq.command.ConsumerInfo; 26 import org.apache.activemq.command.Message; 27 import org.apache.activemq.command.MessageAck; 28 import org.apache.activemq.command.MessageDispatchNotification; 29 import org.apache.activemq.command.MessagePull; 30 import org.apache.activemq.command.RemoveSubscriptionInfo; 31 import org.apache.activemq.command.Response; 32 33 import java.util.Map ; 34 import java.util.Set ; 35 36 43 public interface Region extends Service { 44 45 54 public Destination addDestination(ConnectionContext context, ActiveMQDestination destination) throws Exception ; 55 56 66 public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception ; 67 68 73 public Map getDestinationMap(); 74 75 76 82 public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception ; 83 84 89 public void removeConsumer(ConnectionContext context, ConsumerInfo info) throws Exception ; 90 91 97 public void removeSubscription(ConnectionContext context, RemoveSubscriptionInfo info) throws Exception ; 98 99 107 public void send(ProducerBrokerExchange producerExchange, Message message) throws Exception ; 108 109 114 public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception ; 115 116 119 public Response messagePull(ConnectionContext context, MessagePull pull) throws Exception ; 120 121 126 public void processDispatchNotification(MessageDispatchNotification messageDispatchNotification) throws Exception ; 127 128 public void gc(); 129 130 135 public Set getDestinations(ActiveMQDestination destination); 136 137 } 138 | Popular Tags |