setExpiryRelativeToNow

setExpiryRelativeToNow(lifeTimeSeconds: Integer);

The setExpiryRelativeToNow method of the JadeGenericMessage class sets the expiresWhen property of the message to a date and time value resulting from adding the number of seconds specified by the value of the lifeTimeSeconds parameter to the current date and time. This method cannot be called after the beginMessage or putMessage method of the JadeGenericQueue class.