expiresWhen

Type: TimeStamp

The read-only expiresWhen property of the JadeGenericMessage class contains the date and time at which the sender of the message considers the message to have expired. The value of the property can be set by the sender of the message using the setExpiryRelativeToNow method of the JadeGenericMessage class, but this method cannot be called after the beginMessage or putMessage method of the JadeGenericQueue class.

If an expiry value is not explicitly set, it is effectively set to a valid date and time in the very distant future, which can be correctly compared with a current timestamp value.

Your application can decide how to deal with messages that the sender considers to have expired.