1 package com.ubermq.jms.common.datagram; 2 3 import com.ubermq.kernel.IDatagram; 4 import java.util.Collection ; 5 6 15 public interface IMessageDatagram extends IDatagram 16 { 17 21 public static final int STDPROP_TIMESTAMP = 1; 23 29 public static final int STDPROP_TTL = 3; 31 36 public static final int STDPROP_PRIORITY = 4; 38 42 public static final int STDPROP_DELIVERYMODE = 5; 44 47 public static final int STDPROP_BODY = 6; 49 53 public static final int STDPROP_REDELIVERY = 7; 55 59 public static final int STDPROP_REPLYTO = 8; 61 65 public static final int STDPROP_CORRELATIONID = 9; 67 70 public static final int STDPROP_MSGTYPE = 10; 72 75 public void clearProperties(); 76 77 83 public void setStandardProperty(int property, Object value); 84 85 90 public Object getStandardProperty(int property); 91 92 97 public void setCustomProperty(String property, Object value); 98 99 104 public Object getCustomProperty(String property); 105 106 110 public Collection getCustomPropertyNames(); 111 112 119 public void prepareToSend(int deliveryMode, int pri, long ttl); 120 121 126 public String getTopicName(); 127 128 132 public void setTopicName(String sz); 133 134 140 public MessageId getIncomingMessageId(); 141 142 148 public MessageId getMessageId(); 149 150 156 public long getSenderId(); 157 158 162 public void setSenderId(long senderId); 163 164 170 public int getSequence(); 171 172 175 public void setSequence(int sequence); 176 177 } 178 | Popular Tags |