1 18 package org.apache.activemq.broker.region.policy; 19 20 import org.apache.activemq.broker.ConnectionContext; 21 import org.apache.activemq.broker.region.MessageReference; 22 import org.apache.activemq.broker.region.Subscription; 23 import org.apache.activemq.broker.region.SubscriptionRecovery; 24 import org.apache.activemq.broker.region.Topic; 25 import org.apache.activemq.command.ActiveMQDestination; 26 import org.apache.activemq.command.Message; 27 28 35 public class NoSubscriptionRecoveryPolicy implements SubscriptionRecoveryPolicy { 36 37 38 public SubscriptionRecoveryPolicy copy() { 39 return this; 41 } 42 43 public boolean add(ConnectionContext context, MessageReference node) throws Exception { 44 return true; 45 } 46 47 public void recover(ConnectionContext context, Topic topic, SubscriptionRecovery sub) throws Exception { 48 } 49 50 public void start() throws Exception { 51 } 52 53 public void stop() throws Exception { 54 } 55 56 public Message[] browse(ActiveMQDestination dest) throws Exception { 57 return new Message[0]; 58 } 59 60 } 61 | Popular Tags |