HealthInformation.getSequenceNumber 方法


Gets the sequence number associated with the report. Must be greater than

Remarks:The report sequence number is used by health store to detect stale reports. Most of the times, the reporter doesn't need to specify the sequence number. The default value AutoSequenceNumber can be used instead. When a health client receives a report with Auto sequence number, it replaces the auto sequence number with a valid sequence number. The sequence number is guaranteed to increase in the same process, even if the client machine time goes backwards.

public long getSequenceNumber()



A long representing the report sequence number.