Skip to content

qie.getLastReceivedTimestamp

Signature: qie.getLastReceivedTimestamp()

Returns: Long timestamp - the timestamp of the last message received

Returns the timestamp of the last message received in milliseconds.

Parameters

None

Example

/* From a scheduled script */
if (qie.getSystemTimeMilliseconds() - qie.getLastReceivedTimestamp() > 3600000) {
   // It's been 1 hour since we've last processed any messages
}