1 18 package org.apache.activemq.broker.region; 19 20 import java.io.IOException ; 21 22 import org.apache.activemq.Service; 23 import org.apache.activemq.broker.ConnectionContext; 24 import org.apache.activemq.broker.ProducerBrokerExchange; 25 import org.apache.activemq.broker.region.policy.DeadLetterStrategy; 26 import org.apache.activemq.command.ActiveMQDestination; 27 import org.apache.activemq.command.Message; 28 import org.apache.activemq.command.MessageAck; 29 import org.apache.activemq.memory.UsageManager; 30 31 35 public interface Destination extends Service { 36 37 void addSubscription(ConnectionContext context, Subscription sub) throws Exception ; 38 void removeSubscription(ConnectionContext context, Subscription sub) throws Exception ; 39 40 void send(ProducerBrokerExchange producerExchange, Message messageSend) throws Exception ; 41 boolean lock(MessageReference node, LockOwner lockOwner); 42 void acknowledge(ConnectionContext context, Subscription sub, final MessageAck ack, final MessageReference node) throws IOException ; 43 44 void gc(); 45 46 ActiveMQDestination getActiveMQDestination(); 47 UsageManager getUsageManager(); 48 49 void dispose(ConnectionContext context) throws IOException ; 50 51 DestinationStatistics getDestinationStatistics(); 52 DeadLetterStrategy getDeadLetterStrategy(); 53 54 public Message[] browse(); 55 public String getName(); 56 } 57 | Popular Tags |