Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » QAnywhere » QAnywhere Reference » QAnywhere Java API reference » QAnywhere Java API for clients » QAMessage interface

 

getExpiration method

Syntax
java.util.Date 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.