1 18 package org.apache.activemq.broker.jmx; 19 20 import javax.management.openmbean.CompositeData ; 21 import javax.management.openmbean.OpenDataException ; 22 23 24 public interface QueueViewMBean extends DestinationViewMBean { 25 26 34 public CompositeData getMessage(String messageId) throws OpenDataException ; 35 36 45 public boolean removeMessage(String messageId) throws Exception ; 46 47 52 public int removeMatchingMessages(String selector) throws Exception ; 53 54 59 public int removeMatchingMessages(String selector, int maximumMessages) throws Exception ; 60 61 62 66 public void purge() throws Exception ; 67 68 77 public boolean copyMessageTo(String messageId, String destinationName) throws Exception ; 78 79 84 public int copyMatchingMessagesTo(String selector, String destinationName) throws Exception ; 85 86 91 public int copyMatchingMessagesTo(String selector, String destinationName, int maximumMessages) throws Exception ; 92 93 102 public boolean moveMessageTo(String messageId, String destinationName) throws Exception ; 103 104 109 public int moveMatchingMessagesTo(String selector, String destinationName) throws Exception ; 110 111 114 public int moveMatchingMessagesTo(String selector, String destinationName, int maximumMessages) throws Exception ; 115 116 } 117 | Popular Tags |