@@ -47,4 +47,46 @@ type Message interface {
47
47
// Typical values returned by this method include
48
48
// jms20subset.DeliveryMode_PERSISTENT and jms20subset.DeliveryMode_NON_PERSISTENT
49
49
GetJMSDeliveryMode () int
50
+
51
+ // SetStringProperty enables an application to set a string-type message property.
52
+ //
53
+ // value is *string which allows a nil value to be specified, to unset an individual
54
+ // property.
55
+ SetStringProperty (name string , value * string ) JMSException
56
+
57
+ // GetStringProperty returns the string value of a named message property.
58
+ // Returns nil if the named property is not set.
59
+ GetStringProperty (name string ) (* string , JMSException )
60
+
61
+ // SetIntProperty enables an application to set a int-type message property.
62
+ SetIntProperty (name string , value int ) JMSException
63
+
64
+ // GetIntProperty returns the int value of a named message property.
65
+ // Returns 0 if the named property is not set.
66
+ GetIntProperty (name string ) (int , JMSException )
67
+
68
+ // SetDoubleProperty enables an application to set a double-type (float64) message property.
69
+ SetDoubleProperty (name string , value float64 ) JMSException
70
+
71
+ // GetDoubleProperty returns the double (float64) value of a named message property.
72
+ // Returns 0 if the named property is not set.
73
+ GetDoubleProperty (name string ) (float64 , JMSException )
74
+
75
+ // SetBooleanProperty enables an application to set a bool-type message property.
76
+ SetBooleanProperty (name string , value bool ) JMSException
77
+
78
+ // GetBooleanProperty returns the bool value of a named message property.
79
+ // Returns false if the named property is not set.
80
+ GetBooleanProperty (name string ) (bool , JMSException )
81
+
82
+ // PropertyExists returns true if the named message property exists on this message.
83
+ PropertyExists (name string ) (bool , JMSException )
84
+
85
+ // GetPropertyNames returns a slice of strings containing the name of every message
86
+ // property on this message.
87
+ // Returns a zero length slice if no message properties are set.
88
+ GetPropertyNames () ([]string , JMSException )
89
+
90
+ // ClearProperties removes all message properties from this message.
91
+ ClearProperties () JMSException
50
92
}
0 commit comments