1 23 24 25 package javax.jms; 26 27 import java.util.Enumeration ; 28 import java.util.Properties ; 29 30 546 547 public interface Message { 548 549 553 static final int DEFAULT_DELIVERY_MODE = DeliveryMode.PERSISTENT; 554 555 557 static final int DEFAULT_PRIORITY = 4; 558 559 562 static final long DEFAULT_TIME_TO_LIVE = 0; 563 564 565 605 606 String  607 getJMSMessageID() throws JMSException ; 608 609 610 622 623 void 624 setJMSMessageID(String id) throws JMSException ; 625 626 627 660 661 long 662 getJMSTimestamp() throws JMSException ; 663 664 665 677 678 void 679 setJMSTimestamp(long timestamp) throws JMSException ; 680 681 682 696 697 byte [] 698 getJMSCorrelationIDAsBytes() throws JMSException ; 699 700 701 726 727 void 728 setJMSCorrelationIDAsBytes(byte[] correlationID) throws JMSException ; 729 730 731 773 774 void 775 setJMSCorrelationID(String correlationID) throws JMSException ; 776 777 778 793 794 String  795 getJMSCorrelationID() throws JMSException ; 796 797 798 810 811 Destination  812 getJMSReplyTo() throws JMSException ; 813 814 815 846 847 void 848 setJMSReplyTo(Destination replyTo) throws JMSException ; 849 850 851 870 871 Destination  872 getJMSDestination() throws JMSException ; 873 874 875 887 888 void 889 setJMSDestination(Destination destination) throws JMSException ; 890 891 892 902 903 int 904 getJMSDeliveryMode() throws JMSException ; 905 906 907 920 921 void 922 setJMSDeliveryMode(int deliveryMode) throws JMSException ; 923 924 925 940 941 boolean 942 getJMSRedelivered() throws JMSException ; 943 944 945 959 960 void 961 setJMSRedelivered(boolean redelivered) throws JMSException ; 962 963 964 974 975 String  976 getJMSType() throws JMSException ; 977 978 979 1009 1010 void 1011 setJMSType(String type) throws JMSException ; 1012 1013 1014 1042 1043 long 1044 getJMSExpiration() throws JMSException ; 1045 1046 1047 1059 1060 void 1061 setJMSExpiration(long expiration) throws JMSException ; 1062 1063 1064 1084 1085 int 1086 getJMSPriority() throws JMSException ; 1087 1088 1089 1101 1102 void 1103 setJMSPriority(int priority) throws JMSException ; 1104 1105 1106 1113 1114 void 1115 clearProperties() throws JMSException ; 1116 1117 1118 1127 1128 boolean 1129 propertyExists(String name) throws JMSException ; 1130 1131 1132 1143 1144 boolean 1145 getBooleanProperty(String name) throws JMSException ; 1146 1147 1148 1159 1160 byte 1161 getByteProperty(String name) throws JMSException ; 1162 1163 1164 1175 1176 short 1177 getShortProperty(String name) throws JMSException ; 1178 1179 1180 1191 1192 int 1193 getIntProperty(String name) throws JMSException ; 1194 1195 1196 1207 1208 long 1209 getLongProperty(String name) throws JMSException ; 1210 1211 1212 1223 1224 float 1225 getFloatProperty(String name) throws JMSException ; 1226 1227 1228 1239 1240 double 1241 getDoubleProperty(String name) throws JMSException ; 1242 1243 1244 1256 1257 String  1258 getStringProperty(String name) throws JMSException ; 1259 1260 1261 1279 1280 Object  1281 getObjectProperty(String name) throws JMSException ; 1282 1283 1284 1294 1295 Enumeration  1296 getPropertyNames() throws JMSException ; 1297 1298 1299 1311 1312 void 1313 setBooleanProperty(String name, boolean value) 1314 throws JMSException ; 1315 1316 1317 1329 1330 void 1331 setByteProperty(String name, byte value) 1332 throws JMSException ; 1333 1334 1335 1347 1348 void 1349 setShortProperty(String name, short value) 1350 throws JMSException ; 1351 1352 1353 1365 1366 void 1367 setIntProperty(String name, int value) 1368 throws JMSException ; 1369 1370 1371 1383 1384 void 1385 setLongProperty(String name, long value) 1386 throws JMSException ; 1387 1388 1389 1401 1402 void 1403 setFloatProperty(String name, float value) 1404 throws JMSException ; 1405 1406 1407 1419 1420 void 1421 setDoubleProperty(String name, double value) 1422 throws JMSException ; 1423 1424 1425 1437 1438 void 1439 setStringProperty(String name, String value) 1440 throws JMSException ; 1441 1442 1443 1460 1461 void 1462 setObjectProperty(String name, Object value) 1463 throws JMSException ; 1464 1465 1466 1493 1494 void 1495 acknowledge() throws JMSException ; 1496 1497 1498 1508 1509 void 1510 clearBody() throws JMSException ; 1511} 1512 | Popular Tags |