1 18 package org.apache.activemq.broker.region; 19 20 import java.io.IOException ; 21 22 import org.apache.activemq.command.ConsumerId; 23 import org.apache.activemq.command.Message; 24 import org.apache.activemq.command.MessageId; 25 26 33 public interface MessageReference { 34 35 public MessageId getMessageId(); 36 public Message getMessageHardRef(); 37 public Message getMessage() throws IOException ; 38 public boolean isPersistent(); 39 40 public Destination getRegionDestination(); 41 42 public int getRedeliveryCounter(); 43 public void incrementRedeliveryCounter(); 44 45 public int getReferenceCount(); 46 47 public int incrementReferenceCount(); 48 public int decrementReferenceCount(); 49 public ConsumerId getTargetConsumerId(); 50 public int getSize(); 51 public long getExpiration(); 52 public String getGroupID(); 53 public int getGroupSequence(); 54 55 58 public boolean isExpired(); 59 60 } 61 | Popular Tags |