8
8
class ActiveMQMessage (DictWrapper ):
9
9
@property
10
10
def message_id (self ) -> str :
11
+ """Unique identifier for the message"""
11
12
return self ["messageID" ]
12
13
13
14
@property
@@ -34,18 +35,22 @@ def connection_id(self) -> str:
34
35
35
36
@property
36
37
def redelivered (self ) -> bool :
38
+ """true if the message is being resent to the consumer"""
37
39
return self ["redelivered" ]
38
40
39
41
@property
40
42
def timestamp (self ) -> int :
43
+ """Time in milliseconds."""
41
44
return self ["timestamp" ]
42
45
43
46
@property
44
47
def broker_in_time (self ) -> int :
48
+ """Time stamp (in milliseconds) for when the message arrived at the broker."""
45
49
return self ["brokerInTime" ]
46
50
47
51
@property
48
52
def broker_out_time (self ) -> int :
53
+ """Time stamp (in milliseconds) for when the message left the broker."""
49
54
return self ["brokerOutTime" ]
50
55
51
56
@property
@@ -54,26 +59,41 @@ def destination_physicalname(self) -> str:
54
59
55
60
@property
56
61
def delivery_mode (self ) -> Optional [int ]:
62
+ """persistent or non-persistent delivery"""
57
63
return self .get ("deliveryMode" )
58
64
59
65
@property
60
66
def correlation_id (self ) -> Optional [str ]:
67
+ """User defined correlation id"""
61
68
return self .get ("correlationID" )
62
69
63
70
@property
64
71
def reply_to (self ) -> Optional [str ]:
72
+ """User defined reply to"""
65
73
return self .get ("replyTo" )
66
74
67
75
@property
68
76
def get_type (self ) -> Optional [str ]:
77
+ """User defined message type"""
69
78
return self .get ("type" )
70
79
71
80
@property
72
81
def expiration (self ) -> Optional [int ]:
82
+ """Expiration attribute whose value is given in milliseconds"""
73
83
return self .get ("expiration" )
74
84
75
85
@property
76
86
def priority (self ) -> Optional [int ]:
87
+ """
88
+ JMS defines a ten-level priority value, with 0 as the lowest priority and 9
89
+ as the highest. In addition, clients should consider priorities 0-4 as
90
+ gradations of normal priority and priorities 5-9 as gradations of expedited
91
+ priority.
92
+
93
+ JMS does not require that a provider strictly implement priority ordering
94
+ of messages; however, it should do its best to deliver expedited messages
95
+ ahead of normal messages.
96
+ """
77
97
return self .get ("priority" )
78
98
79
99
0 commit comments