getExpiration method

Syntax
java.util.Date ianywhere.qanywhere.client.QAMessage.getExpiration()
throws QAException
Throws
  • Thrown if there is a problem getting the expiration.
Remarks

Returns the message's expiration value, or null if the message does not expire or has not yet been sent.

When a message is sent, the expiration is left unassigned. After the send operation completes, it holds the expiration time of the message.

This is a read-only property because the expiration time of a message is set by adding the time-to-live argument of QAManagerBase.putMessageTimeToLive(String, QAMessage, long) to the current time.

See Also

putMessageTimeToLive method

Returns

The message's expiration value, or null if the message does not expire or has not yet been sent.